From 2f744a30ca5cf075b990606f25119af2e922e239 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Wed, 27 Sep 2017 23:48:35 -0500 Subject: user/kservice: new package --- user/kservice/APKBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 user/kservice/APKBUILD (limited to 'user/kservice/APKBUILD') 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 +# Maintainer: A. Wilcox +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" -- cgit v1.2.3-70-g09d2