aboutsummaryrefslogtreecommitdiffstats
path: root/community/libkleo/APKBUILD
blob: 9379aa767c5a945d53b5cfb3713a03815176cff2 (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.1
pkgrel=1
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="3862fffa265cb916738dacd6826cfbb2acaf0559128ffe4d508c6275fb9a9850e46ff50353f729e5d4f7232bb89433411f4ae69741ec835a3055f6a584d2f14b  libkleo-20.12.1.tar.xz"