# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=libkdegames pkgver=19.08.2 pkgrel=0 arch="all" 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 qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtsvg-dev kcoreaddons-dev kconfig-dev kwidgetsaddons-dev kcodecs-dev karchive-dev kdbusaddons-dev kdnssd-dev kdeclarative-dev ki18n-dev kguiaddons-dev kservice-dev kconfigwidgets-dev kitemviews-dev kiconthemes-dev kcompletion-dev kjobwidgets-dev ktextwidgets-dev kglobalaccel-dev kxmlgui-dev kcrash-dev kbookmarks-dev knewstuff-dev openal-soft-dev libsndfile-dev" checkdepends="xvfb-run" source="https://download.kde.org/stable/applications/$pkgver/src/libkdegames-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-lang carddecks::noarch" build() { cmake \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib make } check() { CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest } package() { DESTDIR="$pkgdir" make install } carddecks() { pkgdesc="Contains all carddecks for KDE cardgames" depends="$pkgname" mkdir -p "$subpkgdir"/usr/share mv "$pkgdir"/usr/share/"$subpkgname" "$subpkgdir"/usr/share/ } sha512sums="68ffcd6696b903c0d701996ead9f05ea2d35d72871840cb11ed05d9034bd2cc89017e5ef8fb8508452446075ed157dc6cbcda32762ed5d79ff35bf9e070c7b67 libkdegames-19.08.2.tar.xz"