summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
Diffstat (limited to 'user')
-rw-r--r--user/kservice/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/user/kservice/APKBUILD b/user/kservice/APKBUILD
new file mode 100644
index 000000000..69f24e472
--- /dev/null
+++ b/user/kservice/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=kservice
+pkgver=5.38.0
+pkgrel=0
+pkgdesc="Framework for implementing plugins and services"
+url="https://www.kde.org/"
+arch="all"
+license="LGPL-2.1"
+options="!check" # Test suite won't build, broken tarball
+depends=""
+depends_dev="qt5-qtbase-dev kconfig-dev kcoreaddons-dev kcrash-dev
+ kdbusaddons-dev ki18n-dev"
+makedepends="$depends_dev cmake extra-cmake-modules kdoctools-dev python3
+ flex bison"
+install=""
+subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
+source="http://download.kde.org/stable/frameworks/5.38/kservice-$pkgver.tar.xz"
+builddir="$srcdir/kservice-$pkgver"
+
+build() {
+ cd "$builddir"
+ 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" \
+ -DBUILD_TESTING=OFF \
+ ${CMAKE_CROSSOPTS}
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="0e76294ff870e8e41c562d062c715a9a9d08fcd2a1c1eea650dd3c81e36e153fc6e9e9e38a552159cab3ddd5e30ab1f653c4065c07173e51c487060583756a0b kservice-5.38.0.tar.xz"