summaryrefslogblamecommitdiff
path: root/user/libkleo/APKBUILD
blob: db75c28a426c861497d8ce0f9c0cae5165898327 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                  
              



                                
                                                 
          



                                                                                             
                                        


                                                                                       


























                                                                                          

                                                                                                                                                                    
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libkleo
pkgver=19.04.2
pkgrel=0
pkgdesc="KDE encryption library"
url="https://www.kde.org/"
arch="all"
license="GPL-2.0+ AND GPL-2.0-only AND LGPL-2.1+"
depends=""
depends_dev="qt5-qtbase-dev boost-dev gpgme-dev libgpg-error-dev ki18n-dev kwidgetsaddons-dev
	kitemmodels-dev"
makedepends="$depends_dev cmake extra-cmake-modules kcompletion-dev kconfig-dev
	kcodecs-dev kcoreaddons-dev kpimtextedit-dev kwindowsystem-dev"
subpackages="$pkgname-dev $pkgname-lang"
source="https://download.kde.org/stable/applications/$pkgver/src/libkleo-$pkgver.tar.xz
	egregious-versions.patch
	"

build() {
	cd "$builddir"
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		${CMAKE_CROSSOPTS}
	make
}

check() {
	cd "$builddir"
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="9dbe7a1671d819d8e69fd2701e45fec59c49c3ccbe5d92e3b4ad4f401c77c9c8b011c2de166f2ea503584aef8d784d0f269a2bd500fe327a8b1e1205d4a1f649  libkleo-19.04.2.tar.xz
130c4b609d546f18c969bb4fa3b83d437ac7d282639c89739899f9858f0345f4cea9a1b81bb4d69318534fa74439c7d29fb236ebd719409d937532f62d133a93  egregious-versions.patch"