summaryrefslogtreecommitdiff
path: root/user/kaddressbook/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/kaddressbook/APKBUILD')
-rw-r--r--user/kaddressbook/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/user/kaddressbook/APKBUILD b/user/kaddressbook/APKBUILD
new file mode 100644
index 000000000..95ec26d52
--- /dev/null
+++ b/user/kaddressbook/APKBUILD
@@ -0,0 +1,48 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=kaddressbook
+pkgver=20.04.3
+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"
+
+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="3b9d3f17a73c5687a30b10909004aa9c6ed52210808cb147badae4bc07046cac44b0ae2f64e8c950344e755afe3da0f402fb3ed6688d825d99d5e0faf160df5a kaddressbook-20.04.3.tar.xz"