blob: 86585128962fa91da9352a2efb958ea61a598c59 (
plain) (
tree)
|
|
# 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"
|