summaryrefslogblamecommitdiff
path: root/user/libkleo/APKBUILD
blob: 8122014b2e494a7b674f392b0817bddd3a0170f5 (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=18.08.3
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"

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="5bd2aac755e6dad05e05e1c49b83cccf8b349c9231533dc821b3ba1dcc4da3fb66f7e8aaaeebdd1c080a28d94b9646afb248b5bee44e3bec8447d1293dda5f10  libkleo-18.08.3.tar.xz"