summaryrefslogtreecommitdiff
path: root/user/kcalcore/APKBUILD
blob: 3e7b2700d6726322c6bbbe292d80dfe6a7f1b562 (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
41
42
43
44
45
46
47
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=kcalcore
pkgver=17.08.1
pkgrel=0
pkgdesc="Library for managing a calendar of events"
url="https://www.kde.org/"
arch="all"
license="LGPL-2.0"
depends=""
depends_dev="qt5-qtbase-dev kconfig-dev kdelibs4support-dev libical-dev"
makedepends="$depends_dev cmake extra-cmake-modules bison"
checkdepends="tzdata"
install=""
subpackages="$pkgname-dev"
source="http://download.kde.org/stable/applications/$pkgver/src/kcalcore-$pkgver.tar.xz
	posix-header.patch"
builddir="$srcdir/kcalcore-$pkgver"

build() {
	cd "$builddir"
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		${CMAKE_CROSSOPTS}
	make
}

check() {
	cd "$builddir"
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E RecursOn-RFC2445_RRULETest39.ics
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="e4602de6a2482b5c6f54dc5247638e0d440813dd964582b42e4c3e2d9865370ad82e24539e01db3c70f24649d5c4116407aabb2b1fab5bb954d95cf8b867c834  kcalcore-17.08.1.tar.xz
d911c2a03b1db1f9f3b19e7087ae5cbee59ced24ded3b43f2d3286651d13e5f531d171cf7dc6c26906116d4b51a79f2801828956fa1f4e7094fa2f53fe2b888f  posix-header.patch"