# 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=kblocks pkgver=24.08.1 pkgrel=0 pkgdesc="The classic falling blocks game" url="https://kde.org/applications/games/kblocks/" # armhf blocked by extra-cmake-modules arch="all !armhf" license="GPL-2.0-or-later AND GFDL-1.2-only" makedepends=" extra-cmake-modules kconfig-dev kconfigwidgets-dev kcoreaddons-dev kcrash-dev kdbusaddons-dev kdoctools-dev ki18n-dev kwidgetsaddons-dev kxmlgui-dev libkdegames-dev qt6-qtbase-dev qt6-qtsvg-dev samurai " checkdepends="xvfb-run" subpackages="$pkgname-doc $pkgname-lang" _repo_url="https://invent.kde.org/games/kblocks.git" source="https://download.kde.org/stable/release-service/$pkgver/src/kblocks-$pkgver.tar.xz" build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib cmake --build build } check() { xvfb-run ctest --test-dir build --output-on-failure } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 6e52f833a16e60319b7034729172f5f1d352f9ab8c564be95a692c04ba3b0386abf75394f247abc18411e9eb28aa41e917f144a036aeafbd33ae8ba570c634e4 kblocks-24.08.1.tar.xz "