summaryrefslogtreecommitdiff
path: root/user/pimcommon/APKBUILD
blob: abe9de1df325063db370570ac84885a3a5b03871 (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
43
44
45
46
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=pimcommon
pkgver=20.04.3
pkgrel=0
pkgdesc="Common files for KDE PIM software"
url="https://kontact.kde.org/"
arch="all"
license="LGPL-2.0+ AND GPL-2.0+"
depends=""
makedepends="qt5-qtbase-dev qt5-qttools-dev cmake extra-cmake-modules boost-dev
	karchive-dev kauth-dev kbookmarks-dev kcodecs-dev kcompletion-dev
	kconfig-dev kconfigwidgets-dev kcontacts-dev kcoreaddons-dev ki18n-dev
	kimap-dev kio-dev kitemmodels-dev kitemviews-dev kjobwidgets-dev
	kmime-dev knewstuff-dev kpimtextedit-dev kservice-dev ktextwidgets-dev
	kwidgetsaddons-dev kwindowsystem-dev kxmlgui-dev libkdepim-dev
	purpose-dev solid-dev sonnet-dev
	akonadi-dev akonadi-contacts-dev attica-dev libxslt-dev"
subpackages="$pkgname-dev $pkgname-lang"
source="https://download.kde.org/stable/release-service/$pkgver/src/pimcommon-$pkgver.tar.xz"

build() {
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		${CMAKE_CROSSOPTS} \
		.
	make
}

check() {
	QT_QPA_PLATFORM=offscreen CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="63396ba86cbcd6a8e53981cac79f30ead57dbe06eb1772274a185726117b2bbcb52f8c8f0dc9a8d9534f147615d985ed0d6812e466989b6968944b775ca2dd31  pimcommon-20.04.3.tar.xz"