summaryrefslogtreecommitdiff
path: root/user/kaddressbook/APKBUILD
blob: ad05e017a2f750e11f63a405a9e45655b443d003 (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
47
48
49
50
51
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=kaddressbook
pkgver=20.08.1
pkgrel=0
pkgdesc="KDE contact manager"
url="https://kontact.kde.org/components/kaddressbook.html"
arch="all"
license="GPL-2.0+"
depends=""
makedepends="qt5-qtbase-dev cmake extra-cmake-modules akonadi-dev boost-dev
	akonadi-contacts-dev akonadi-mime-dev akonadi-search-dev gpgme-dev
	grantlee-dev grantleetheme-dev kauth-dev kcalendarcore-dev
	kcmutils-dev kcodecs-dev kcompletion-dev kconfigwidgets-dev
	kcontacts-dev kcoreaddons-dev kcrash-dev kdbusaddons-dev kdoctools-dev
	kimap-dev kio-dev kitemmodels-dev kitemviews-dev kjobwidgets-dev
	kmime-dev kontactinterface-dev kparts-dev kpimtextedit-dev kservice-dev
	kdepim-apps-libs-dev kuserfeedback-dev kwidgetsaddons-dev
	kwindowsystem-dev kxmlgui-dev libkdepim-dev libkleo-dev pimcommon-dev
	prison-dev solid-dev sonnet-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.kde.org/stable/release-service/$pkgver/src/kaddressbook-$pkgver.tar.xz
	lts.patch
	"

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() {
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

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

sha512sums="2904dcb07799489bab5e8e3faf2c36be0f0c44d084e8d96dccb014de7f3fcee745213ac9a5d5a72bfdfa89f14e9c0f1391669a1a2ae26454d2bc170f4b6a17c3  kaddressbook-20.08.1.tar.xz
e62666dacb00c4c7f2913ba8f5f6defd85d6c9061593711b90b48b2895aa3f91c71d38b6eaca616bf1e79fcc7a81b9d2bdfd76327cde383426e55ab38f9aec16  lts.patch"