diff options
Diffstat (limited to 'user/khelpcenter/APKBUILD')
-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..865851289 --- /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.2 +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="634a5d9cbe17469e7a3916d315d028adf64ed6a828787a822e0e6e99607e0321cfce78cc07d57ba069fe48ac5a96a4be1d3e17c4d7741bda38c1032afafe92a1 khelpcenter-17.08.2.tar.xz" |