APKBUILD 1.2 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=kirigami2
4
pkgver=5.65.0
Bart Ribbers's avatar
Bart Ribbers committed
5 6
pkgrel=0
pkgdesc="A QtQuick based components set"
7
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
Bart Ribbers's avatar
Bart Ribbers committed
8 9 10 11 12
url="https://community.kde.org/Frameworks"
license="LGPL-2.0-only"
depends="qt5-qtgraphicaleffects"
depends_dev="qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtsvg-dev qt5-qtquickcontrols2-dev kcoreaddons-dev kconfig-dev kwindowsystem-dev"
makedepends="$depends_dev extra-cmake-modules qt5-qttools-dev"
13
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kirigami2-$pkgver.tar.xz"
Bart Ribbers's avatar
Bart Ribbers committed
14 15 16 17
subpackages="$pkgname-dev $pkgname-libs $pkgname-lang"

prepare() {
	default_prepare
18

19
	mkdir "$builddir"/build
Bart Ribbers's avatar
Bart Ribbers committed
20 21 22
}

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

check() {
33
	cd "$builddir"/build
Bart Ribbers's avatar
Bart Ribbers committed
34 35 36 37
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
38
	cd "$builddir"/build
Bart Ribbers's avatar
Bart Ribbers committed
39 40
	DESTDIR="$pkgdir" make install
}
41
sha512sums="3ca024c0b8a875f566a209d018a528209e8c6e8f46fd079e4e08bd52dc6ce8a448c06d8fe36da820d306bec18ab61b28990076241c7b5b843fda8f80af70d6f8  kirigami2-5.65.0.tar.xz"