aboutsummaryrefslogtreecommitdiffstats
path: root/community/kdav2/APKBUILD
blob: b88919e4cdf8e4d9ef2d3b6a11dc38c968a83288 (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kdav2
pkgver=0.4.0
pkgrel=0
pkgdesc="DAV protocol implementation with KJobs"
arch="all !armhf" # qtdeclarative
url="https://community.kde.org/KDE_PIM"
license="GPL-2.0-or-later"
depends_dev="
	kcoreaddons-dev
	qt5-qtbase-dev
	qt5-qtxmlpatterns-dev
	"
makedepends="$depends_dev extra-cmake-modules"
subpackages="$pkgname-dev"
#source="https://download.kde.org/unstable/kdav2/$pkgver/src/kdav2-$pkgver.tar.xz"
source="https://invent.kde.org/pim/kdav2/-/archive/v$pkgver/kdav2-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

check() {
	cd build
	# kdav2-davcollectionfetchjob and kdav2-davcollectioncreatejob require network access
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E "kdav2-davcollection(fetch|create)job"
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}
sha512sums="a0c355c1594dd5cdea3bf7190778ad591bb6d290eee4286492090d685547609ad7efa26657b7c0075ac4aaed2c71e558d1e1fc2d684667bae4dc3ba3cd25dd99  kdav2-v0.4.0.tar.gz"