aboutsummaryrefslogtreecommitdiffstats
path: root/testing/kcalutils/APKBUILD
blob: 3643d5a26760cb0bb1321dfbf4d0394bbefeb067 (plain)
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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kcalutils
pkgver=19.04.3
pkgrel=0
pkgdesc="The KDE calendar utility library"
arch="all"
url="https://api.kde.org/kdepim/kcalutils/html"
license="LGPL-2.0-or-later"
depends_dev="kcoreaddons-dev kconfig-dev ki18n-dev kcodecs-dev kwidgetsaddons-dev kconfigwidgets-dev kiconthemes-dev grantlee-dev kcalcore-dev kidentitymanagement-dev"
makedepends="$depends_dev extra-cmake-modules"
checkdepends="xvfb-run"
source="https://download.kde.org/stable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-lang"

build() {
	cmake \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	make
}

check() {
	# kcalutils-testincidenceformatter is broken
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "kcalutils-testincidenceformatter"
}

package() {
	DESTDIR="$pkgdir" make install
}
sha512sums="5e6397d6f7e9e5e9599df5195b4cdd32d88c7f899b212c95c21cd733444f5e3d1120f293344d4eaba32ee5f1047328f88ec6c915af089dec605129ea899c2432  kcalutils-19.04.3.tar.xz"