summaryrefslogtreecommitdiff
path: root/user/kontactinterface/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/kontactinterface/APKBUILD')
-rw-r--r--user/kontactinterface/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/user/kontactinterface/APKBUILD b/user/kontactinterface/APKBUILD
new file mode 100644
index 000000000..4a7aae210
--- /dev/null
+++ b/user/kontactinterface/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=kontactinterface
+pkgver=20.04.3
+pkgrel=0
+pkgdesc="Kontact public interface library"
+url="https://kde.org/"
+arch="all"
+license="LGPL-2.1+"
+depends=""
+makedepends="qt5-qtbase-dev cmake extra-cmake-modules kauth-dev kcodecs-dev
+ kcoreaddons-dev ki18n-dev kjobwidgets-dev kparts-dev kservice-dev
+ kwindowsystem-dev kxmlgui-dev solid-dev sonnet-dev"
+subpackages="$pkgname-dev $pkgname-lang"
+source="https://download.kde.org/stable/release-service/$pkgver/src/kontactinterface-$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="a702d601ed90c6d90442bf13bf739917180670912dab6c3c4792046daa545ccb7294c8cb6a206dbd9fe6ef411eb7cd4cf113bc87e6b6f2f4517e8180fb4a6c87 kontactinterface-20.04.3.tar.xz"