mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-23 00:32:22 +01:00
58 lines
1.8 KiB
Plaintext
58 lines
1.8 KiB
Plaintext
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=libkgapi
|
|
pkgver=22.04.0
|
|
pkgrel=1
|
|
pkgdesc="LibKGAPI is a KDE-based library for accessing various Google services via their public API"
|
|
# armhf blocked by extra-cmake-modules
|
|
# ppc64le, s390x and riscv64 blocked by qt5-qtwebengine
|
|
arch="all !armhf !ppc64le !s390x !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
|
|
samurai
|
|
"
|
|
checkdepends="xvfb-run"
|
|
source="https://download.kde.org/stable/release-service/$pkgver/src/libkgapi-$pkgver.tar.xz
|
|
0001-fix-build.patch
|
|
"
|
|
subpackages="$pkgname-dev $pkgname-lang"
|
|
|
|
build() {
|
|
cmake -B build -G Ninja \
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib
|
|
cmake --build build
|
|
}
|
|
|
|
check() {
|
|
cd build
|
|
# calendar-freebusyqueryjobtest, contacts-contactfetchjobtest,
|
|
# contacts-contactcreatejobtest and contacts-contactmodifyjobtest 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-contact(fetchjob|createjob|modifyjob))test"
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|
|
|
|
sha512sums="
|
|
e1f89783b5a754e7f2368ef433c62c365ffcbe63b3e9c93d3ce794bb5eb0a86b60f06d3a2ad9ed4a018c176cd1ea80b2caae268d4aa21eef1f38f8299fc71a6d libkgapi-22.04.0.tar.xz
|
|
48ba9a974b10be0fe204a50ec15d7e48f17fa3d3211ad9a22ad0ca5742fd6121ed81563f59c57b6d618597c74e6b831dbc5f046baf64e41a4315663e09c5b74f 0001-fix-build.patch
|
|
"
|