blob: 7b9214f4b5a945558b1c2c38cbaa86b507ed2d3d (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libkgapi
pkgver=21.08.2
pkgrel=0
pkgdesc="LibKGAPI is a KDE-based library for accessing various Google services via their public API"
# armhf blocked by extra-cmake-modules
# ppc64le, s390x, mips64 and riscv64 blocked by qt5-qtwebengine
arch="all !armhf !ppc64le !s390x !mips64 !riscv64"
url="https://community.kde.org/KDE_PIM"
license="LGPL-2.1-only OR LGPL-3.0-only"
depends_dev="
cyrus-sasl-dev
kcalendarcore-dev
kcontacts-dev
kio-dev
kwallet-dev
kwindowsystem-dev
qt5-qtbase-dev
qt5-qtwebengine-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"
build() {
cmake -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
cmake --build build
}
check() {
cd build
# calendar-freebusyqueryjobtest and contacts-contactfetchjobtest are broken
# tasks-taskfetchjobtest fails on the builders
# contacts-contactfetchjobtest: https://gitlab.alpinelinux.org/alpine/aports/-/issues/11787
CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "(tasks-taskfetchjob|calendar-freebusyqueryjob|contacts-contactfetchjob)test"
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
6402558af48ceaa4d638e499e9c1f9fff3845713c763cc0a990feb79cce249cf5804d169727e08a7f8a2bda0aa3ab9664aacd9f619ec193183c9e1bad46b9dec libkgapi-21.08.2.tar.xz
"
|