aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pimcommon/APKBUILD
blob: 2179943c843ba9bcc1445593c45eaba92c586f3e (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=pimcommon
pkgver=19.12.3
pkgrel=0
pkgdesc="Common lib for KDEPim"
arch="all !armhf"
url='https://community.kde.org/KDE_PIM'
license="GPL-2.0-or-later"
depends_dev="qt5-qtbase-dev karchive-dev kcodecs-dev kcompletion-dev kconfig-dev kconfigwidgets-dev kcoreaddons-dev kdbusaddons-dev ki18n-dev kiconthemes-dev kitemmodels-dev kjobwidgets-dev kio-dev knewstuff-dev kservice-dev kwidgetsaddons-dev kxmlgui-dev akonadi-dev akonadi-contacts-dev kcontacts-dev kimap-dev libkdepim-dev kpimtextedit-dev purpose-dev kmime-dev"
makedepends="$depends_dev extra-cmake-modules qt5-qttools-dev"
checkdepends="xvfb-run"
source="https://download.kde.org/stable/release-service/$pkgver/src/pimcommon-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-lang"

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

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest
}

package() {
	DESTDIR="$pkgdir" make -C build install
}
sha512sums="f1368fa5d0825087c8447651e2d878f7f1428bea2dc8372f979694cdff1f961ee3555409738b0e54c6886004a258cb3e7752fd27d3bcf867564471027ebfb6cd  pimcommon-19.12.3.tar.xz"