diff options
-rw-r--r-- | user/khelpcenter/APKBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/user/khelpcenter/APKBUILD b/user/khelpcenter/APKBUILD new file mode 100644 index 000000000..3ece93ede --- /dev/null +++ b/user/khelpcenter/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=khelpcenter +pkgver=17.08.1 +pkgrel=0 +pkgdesc="Graphical documentation viewer" +url="https://www.kde.org/applications/system/khelpcenter/" +arch="all" +license="GPL-2.0" +depends="" +makedepends="cmake extra-cmake-modules qt5-qtbase-dev karchive-dev kconfig-dev + kbookmarks-dev kcoreaddons-dev kdbusaddons-dev kdoctools-dev ki18n-dev + kinit-dev khtml-dev kservice-dev kwindowsystem-dev grantlee-dev + xapian-core-dev libxml2-dev" +install="" +subpackages="$pkgname-doc $pkgname-lang" +install_if="plasma-desktop docs" +source="http://download.kde.org/stable/applications/$pkgver/src/khelpcenter-$pkgver.tar.xz" +builddir="$srcdir/khelpcenter-$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" \ + ${CMAKE_CROSSOPTS} + make +} + +check() { + cd "$builddir" + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +sha512sums="949bdf155f4b5926b7c2d4a783f99afcea01bc7b0a90a6ef2539100ca91be51fc1f1e94aa70dc2ef0e6395e3c07b0fa1f07686d9d06aaf0687e173f020fb6b14 khelpcenter-17.08.1.tar.xz" |