aboutsummaryrefslogtreecommitdiffstats
path: root/community/libkleo/APKBUILD
blob: 1b189fcaea54139fbfded258b9efb2c9f812cf2b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libkleo
pkgver=20.04.2
pkgrel=0
pkgdesc="KDE PIM cryptographic library"
arch="all !armhf"
url="https://kontact.kde.org"
license="GPL-2.0-or-later"
makedepends="extra-cmake-modules qt5-qtbase-dev ki18n-dev kconfig-dev kwidgetsaddons-dev kcompletion-dev kwindowsystem-dev kcoreaddons-dev kcodecs-dev kitemmodels-dev kpimtextedit-dev gpgme-dev boost-dev"
source="https://download.kde.org/stable/release-service/$pkgver/src/libkleo-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-lang"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}
sha512sums="59ed7b0775ef5781469a0c4cf28af286b2eb236878e2b80b37da6035995b7aee6a0612b86dd49bd42dae9d1dad4efce17c098f35efd6168bfec6f8a6cc88a281  libkleo-20.04.2.tar.xz"