aboutsummaryrefslogtreecommitdiffstats
path: root/community/kblocks/APKBUILD
blob: 3e7c7cc1ea56bdfada0dcba501c6d39e1b9a7b2b (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.1
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="04d9268e815788de7efe7502c9f31f3a0d9125ec6416bd748fe6c0cef551288d0c6cfc201a92884cc6359a88983e5c692c9d8467d560cdfcb3b804bfbab85c0d  kblocks-20.12.1.tar.xz"