aboutsummaryrefslogtreecommitdiffstats
path: root/community/purpose/APKBUILD
blob: 9538b156d7e3daf6ee6089e1d6e975a104f4d909 (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
36
37
38
39
40
41
42
43
44
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=purpose
pkgver=5.79.0
pkgrel=0
pkgdesc="Framework for providing abstractions to get the developer's purposes fulfilled"
arch="all !armhf !mips64 !s390x" # armhf blocked by qt5-qtdeclarative and mips64, s390x blocked by polkit
url="https://community.kde.org/Frameworks"
license="LGPL-2.1-or-later"
depends_dev="
	kaccounts-integration-dev
	kconfig-dev
	kcoreaddons-dev
	ki18n-dev
	kio-dev
	kirigami2-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	"
makedepends="$depends_dev extra-cmake-modules"
checkdepends="xvfb-run"
options="!check" # fails on builders
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/purpose-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-lang"

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

check() {
	cd build
	# This is 1 of 2 tests
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E 'menutest'
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}
sha512sums="e9e61f06013a47ff18ade96f1d43465026f07a5163fc443c21c2d9bf9d56435a121a8f7ce8c3e554cb2c0ec1d80795907ae8199a0fd5b81e59f5fd6f32b2f0e3  purpose-5.79.0.tar.xz"