aboutsummaryrefslogtreecommitdiffstats
path: root/community/kblocks/APKBUILD
blob: fb4aac3bd11a4915ebcf07b0cfa8d6583a677e55 (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=kblocks
pkgver=20.12.2
pkgrel=0
arch="all !armhf !s390x !mips !mips64" # armhf blocked by extra-cmake-modules, everything else by rust
url="https://kde.org/applications/games/kblocks/"
pkgdesc="The classic falling blocks game"
license="GPL-2.0-or-later AND GFDL-1.2-only"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtsvg-dev kconfig-dev kconfigwidgets-dev kcoreaddons-dev kcrash-dev kdoctools-dev kdbusaddons-dev ki18n-dev kwidgetsaddons-dev kxmlgui-dev libkdegames-dev"
source="https://download.kde.org/stable/release-service/$pkgver/src/kblocks-$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="0cbb8127df3cd2834ec0372731508417a7fc3cf2917dac556e4b144db52f2d80f404e218bcb027d0b0094759527d38a4cf252e359fa3e4550518e2599561d8be  kblocks-20.12.2.tar.xz"