aboutsummaryrefslogtreecommitdiffstats
path: root/testing/kajongg/APKBUILD
blob: 1f305dd713b363fee86135fe417b3b3212ec3ab6 (plain)
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=kajongg
pkgver=19.12.1
pkgrel=0
arch="noarch"
url="https://kde.org/applications/games/org.kde.kajongg"
pkgdesc="Mah Jongg - the ancient Chinese board game for 4 players"
license="GPL-2.0-or-later AND GFDL-1.2-only"
depends="python3"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtsvg-dev kconfig-dev kdoctools-dev kconfigwidgets-dev libkmahjongg-dev py3-twisted"
source="https://download.kde.org/stable/release-service/$pkgver/src/kajongg-$pkgver.tar.xz"
subpackages="$pkgname-doc $pkgname-lang"

build() {
	cmake \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	make
}

check() {
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	DESTDIR="$pkgdir" make install
}

sha512sums="1f19e13cc0b1026698cc668a31196369da9304959370a2ea4a8cf62e4f1b0d95cec97a2edb95a015cd03890c82e785cdc7f85de88d1ce8f18673b8178ce5d9f5  kajongg-19.12.1.tar.xz"