aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libkmahjongg/APKBUILD
blob: a5d6003df15e565a17ab1523c50f888f6d185835 (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=libkmahjongg
pkgver=19.12.2
pkgrel=1
arch="all !armhf"
url="https://kde.org/applications/games"
pkgdesc="Common code, backgrounds and tile sets for games using Mahjongg tiles"
license="GPL-2.0-or-later AND GFDL-1.2-only"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtsvg-dev kcoreaddons-dev kconfig-dev kconfigwidgets-dev kwidgetsaddons-dev kcompletion-dev ki18n-dev"
source="https://download.kde.org/stable/release-service/$pkgver/src/libkmahjongg-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-lang"
options="!check" # No tests found

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

check() {
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

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

sha512sums="3e03bd0a1b1bea13bf2fec4ea6c256f355b8562f7cdf5fdf3fd3eddd8cd69f1bbb0cbf3a45bc951b3ed3eb8bdbee81c8e8a316834e0f6fd7a75af72954f396a5  libkmahjongg-19.12.2.tar.xz"