aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libkgapi/APKBUILD
blob: a231dd8c49ae50b92a84c54b9725d66b88ddc064 (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libkgapi
pkgver=19.12.2
pkgrel=1
pkgdesc="LibKGAPI is a KDE-based library for accessing various Google services via their public API"
arch="all !ppc64le !s390x !armhf" # limited by qt5-qtwebengine
url="https://community.kde.org/KDE_PIM"
license="LGPL-2.1-only OR LGPL-3.0-only"
depends_dev="qt5-qtbase-dev qt5-qtwebengine-dev kio-dev kwindowsystem-dev kwallet-dev kcalendarcore-dev kcontacts-dev cyrus-sasl-dev"
makedepends="$depends_dev extra-cmake-modules qt5-qttools-dev"
checkdepends="xvfb-run"
source="https://download.kde.org/stable/release-service/$pkgver/src/libkgapi-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-lang"

prepare() {
	default_prepare

	mkdir "$builddir"/build
}

build() {
	cd "$builddir"/build
	cmake "$builddir" \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	make
}

check() {
	cd "$builddir"/build
	# calendar-freebusyqueryjobtest is broken
	# tasks-taskfetchjobtest fails on the builders
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "(tasks-taskfetchjobtest|calendar-freebusyqueryjobtest)"
}

package() {
	cd "$builddir"/build
	DESTDIR="$pkgdir" make install
}
sha512sums="e436b8270d5c9398c589ab5341771ca37d16d362437ee5f2fc3cf62e6513b6f23d4ca1674ccb28db781d4ee3ae4325219df932b48e34464d63246d184dc4989e  libkgapi-19.12.2.tar.xz"