# 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=libkdegames pkgver=23.04.3 pkgrel=1 # armhf blocked by qt5-qtdeclarative arch="all !armhf" url="https://kde.org/applications/games" pkgdesc="Common code and data for many KDE games" license="LGPL-2.0-only AND GFDL-1.2-only" makedepends=" extra-cmake-modules karchive-dev kbookmarks-dev kcodecs-dev kcompletion-dev kconfig-dev kconfigwidgets-dev kcoreaddons-dev kcrash-dev kdbusaddons-dev kdeclarative-dev kdnssd-dev kglobalaccel-dev kguiaddons-dev ki18n-dev kiconthemes-dev kitemviews-dev kjobwidgets-dev knewstuff-dev kservice-dev ktextwidgets-dev kwidgetsaddons-dev kxmlgui-dev libsndfile-dev openal-soft-dev qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtsvg-dev samurai " checkdepends="xvfb-run" _repo_url="https://invent.kde.org/games/libkdegames.git" source="https://download.kde.org/stable/release-service/$pkgver/src/libkdegames-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-lang carddecks::noarch" 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 } carddecks() { pkgdesc="Contains all carddecks for KDE cardgames" depends="$pkgname=$pkgver-r$pkgrel" amove usr/share/carddecks } sha512sums=" 172a57fd6a4472991ef783d4821ced09fff964700d31a253a01d5d2687fa271326a8be725178223498e23632134def4030a912c0903f5a30d1230899fc7f40fa libkdegames-23.04.3.tar.xz "