aboutsummaryrefslogtreecommitdiffstats
path: root/community/kservice/APKBUILD
blob: 3645bbe35b6d92aedac7902949a566c6bd78fd53 (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
32
33
34
35
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kservice
pkgver=5.78.0
pkgrel=0
pkgdesc="Advanced plugin and service introspection"
arch="all !armhf" # armhf blocked by extra-cmake-modules
url="https://community.kde.org/Frameworks"
license="LGPL-2.1-only AND LGPL-2.1-or-later"
depends_dev="kconfig-dev kcoreaddons-dev kcrash-dev kdbusaddons-dev ki18n-dev"
makedepends="$depends_dev extra-cmake-modules kdoctools-dev doxygen qt5-qttools-dev flex-dev bison"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kservice-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"

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

check() {
	cd build
	# ksycoca_xdgdirstest, kmimeassociationstest and kapplicationtradertest are broken
	# ksycocatest requires running X
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E '(ksycoca_xdgdirs|kmimeassociations|ksycoca|kapplicationtrader)test'
}

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

sha512sums="c435beabb150d19f9f7a1599b9bcc7b9a3b25bc2f92b91794132707180d1cd88def950b945e7e8b2e7b4733ef24563d42fae6ce40ab8e408d03d9af83db8462c  kservice-5.78.0.tar.xz"