aboutsummaryrefslogtreecommitdiffstats
path: root/community/khelpcenter/APKBUILD
blob: c417ce51b54c36c31af9d9f24507c14fc7e5bdaa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=khelpcenter
pkgver=20.12.1
pkgrel=0
pkgdesc="Application to show KDE Applications' documentation"
arch="all !armhf !s390x !mips64" # armhf blocked by extra-cmake-modules
url="https://userbase.kde.org/KHelpCenter"
license="GPL-2.0-or-later AND GFDL-1.2-only"
makedepends="extra-cmake-modules qt5-qtbase-dev karchive-dev kbookmarks-dev kconfig-dev kcoreaddons-dev kdbusaddons-dev kdoctools-dev ki18n-dev kinit-dev khtml-dev kservice-dev kwindowsystem-dev grantlee-dev xapian-core-dev libxml2-dev"
source="https://download.kde.org/stable/release-service/$pkgver/src/khelpcenter-$pkgver.tar.xz"
subpackages="$pkgname-doc $pkgname-lang"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}

sha512sums="f970f2927297d227a4d8a4a6de304dc9a3ff417b8257d62e148f40008bdceb9e88ae456e0f3dc98e37e05fcbe6b78781072263f9897fb06df7b4efc9c2cc6a75  khelpcenter-20.12.1.tar.xz"