# Contributor: Bart Ribbers # Maintainer: team/kde # The group tag is just to easily find this APKBUILD by some scripts for automation # group=kde-applications pkgname=kajongg pkgver=23.04.3 pkgrel=1 # armhf blocked by extra-cmake-modules arch="noarch !armhf" 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 py3-twisted " makedepends=" extra-cmake-modules kconfig-dev kconfigwidgets-dev kdoctools-dev libkmahjongg-dev qt5-qtbase-dev qt5-qtsvg-dev samurai " _repo_url="https://invent.kde.org/games/kajongg.git" source="https://download.kde.org/stable/release-service/$pkgver/src/kajongg-$pkgver.tar.xz" subpackages="$pkgname-doc $pkgname-lang $pkgname-pyc" build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib cmake --build build } check() { ctest --test-dir build --output-on-failure } package() { DESTDIR="$pkgdir" cmake --install build } pyc() { default_pyc amove usr/share/kajongg/__pycache__ } sha512sums=" 4c39f746b0af9f7ad913a1b269c021a16b9f06c6777476c47874e43ca4d3041ef3be63a566028952cc6075a318b8adf34af5aa7316f004d9b529590589f99235 kajongg-23.04.3.tar.xz "