aboutsummaryrefslogtreecommitdiffstats
path: root/community/grantleetheme/APKBUILD
blob: 05d066575d21d7e0173a42bbf7722bdb8e888c6f (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
31
32
33
34
35
36
37
38
39
40
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=grantleetheme
pkgver=20.12.2
pkgrel=0
pkgdesc="KDE PIM mail related libraries"
# armhf blocked by extra-cmake-modules
# s390x blocked by knewstuff
arch="all !armhf !s390x !mips64"
url="https://kontact.kde.org/"
license="GPL-2.0-or-later AND LGPL-2.1-or-later"
makedepends="
	extra-cmake-modules
	grantlee-dev
	ki18n-dev
	knewstuff-dev
	"
checkdepends="xvfb-run"
source="https://download.kde.org/stable/release-service/$pkgver/src/grantleetheme-$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

	# grantleethemetest is broken
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "grantleethemetest"
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}
sha512sums="6f587ea30e4c5954fd09bfdacb5ebadb406c333ce04758e99ff31d7b219eb65c3be68d426f8677ad6816c38e409717f1a77fec4d4d97797fa3ee525d72380979  grantleetheme-20.12.2.tar.xz"