summaryrefslogblamecommitdiff
path: root/user/khelpcenter/APKBUILD
blob: 9087595a0cece060bf91721bd8da37f89983c48c (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                  
              



                                                          
                      




                                                                              

                                        
                                                                                               

         









                                                                                          
                                    



            



                                          


                                      
                                                                                                                                                                         
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=khelpcenter
pkgver=19.12.0
pkgrel=0
pkgdesc="Graphical documentation viewer"
url="https://www.kde.org/applications/system/khelpcenter/"
arch="all"
license="GPL-2.0-only"
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"
subpackages="$pkgname-doc $pkgname-lang"
install_if="plasma-desktop docs"
source="https://download.kde.org/stable/release-service/$pkgver/src/khelpcenter-$pkgver.tar.xz"

build() {
	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() {
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="608cb9f54412471cb1521083224eb5c499a788f5814232624915cfa1261fb2d3b4b0fa3b8fe585c72eda8f04beae4e07c6954a6edaaf19709a10e2c35631b4c7  khelpcenter-19.12.0.tar.xz"