APKBUILD 1.23 KB
Newer Older
Bart Ribbers's avatar
Bart Ribbers committed
1 2 3
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=purpose
4
pkgver=5.65.0
Bart Ribbers's avatar
Bart Ribbers committed
5 6
pkgrel=0
pkgdesc="Framework for providing abstractions to get the developer's purposes fulfilled"
7
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
Bart Ribbers's avatar
Bart Ribbers committed
8
url="https://community.kde.org/Frameworks"
9
license="LGPL-2.1-or-later"
10 11
depends_dev="qt5-qtbase-dev qt5-qtdeclarative-dev kcoreaddons-dev ki18n-dev kconfig-dev kio-dev
	kirigami2-dev"
Bart Ribbers's avatar
Bart Ribbers committed
12
makedepends="$depends_dev extra-cmake-modules"
13
checkdepends="xvfb-run"
14
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/purpose-$pkgver.tar.xz"
Bart Ribbers's avatar
Bart Ribbers committed
15 16
subpackages="$pkgname-dev $pkgname-lang"

17 18 19 20 21 22
prepare() {
	default_prepare

	mkdir "$builddir"/build
}

Bart Ribbers's avatar
Bart Ribbers committed
23
build() {
24 25
	cd "$builddir"/build
	cmake "$builddir" \
26
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
Bart Ribbers's avatar
Bart Ribbers committed
27 28 29 30 31 32 33
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_TESTING=ON
	make
}

check() {
34
	cd "$builddir"/build
35 36
	# This is 1 of 2 tests
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E 'menutest'
Bart Ribbers's avatar
Bart Ribbers committed
37 38 39
}

package() {
40
	cd "$builddir"/build
Bart Ribbers's avatar
Bart Ribbers committed
41 42
	DESTDIR="$pkgdir" make install
}
43
sha512sums="7f5bbbcfe2acbe6251e22a474cc4ec7bb20ceb14723b82d22f48d084d098067180f46bc2f87217878e913dab588f137d4dfca0803bfbdd9f42176ab76f02f15f  purpose-5.65.0.tar.xz"