summaryrefslogtreecommitdiff
path: root/user/khelpcenter/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-10-14 23:34:31 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2017-10-14 23:34:31 -0500
commit029cb833a915dd568bb8840544aa3f078607253b (patch)
tree93f2ff7ff8c1ae3d14dd9e8bc8674143da55e592 /user/khelpcenter/APKBUILD
parent7cb205ac51bea3b12e6b7dfa1f094256eb4144a0 (diff)
downloadpackages-029cb833a915dd568bb8840544aa3f078607253b.tar.gz
packages-029cb833a915dd568bb8840544aa3f078607253b.tar.bz2
packages-029cb833a915dd568bb8840544aa3f078607253b.tar.xz
packages-029cb833a915dd568bb8840544aa3f078607253b.zip
user/khelpcenter: new package
Diffstat (limited to 'user/khelpcenter/APKBUILD')
-rw-r--r--user/khelpcenter/APKBUILD47
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"