aboutsummaryrefslogtreecommitdiffstats
path: root/community/libkleo/APKBUILD
blob: a0bf27d7f7ab866bcd7703cf1b7f4d08ffe31762 (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.12.2
pkgrel=0
pkgdesc="KDE PIM cryptographic library"
arch="all !armhf !mips !mips64 !s390x" # blocked by rust
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="38b6bbbecf37327ef8ce55f9d14750c4fbfa8ca9712d73906f13e42ca3e199e6fbe2b9dd28afdeaa239aca73cf6608a12246472238e235eee099305d9c48be50  libkleo-20.12.2.tar.xz"