aboutsummaryrefslogblamecommitdiffstats
path: root/community/libkdegames/APKBUILD
blob: cca661f671bc28416389c83bbe75cd22362415a9 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                  
              
        



                                                                          


                                                 





                                                                                     
                       
                                                                                               


                                                          
                        
                                         

                                             
                           


         
                



                                                   
                                                              









                                                                    
                                                                                                                                                                         
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libkdegames
pkgver=20.08.2
pkgrel=0
# armhf blocked by qt5-qtdeclarative
# s390x blocked by kdeclarative, kconfigwidgets, kiconthemes, ktextwidgets
#  kxmlgui, kbookmarks, knewstuff
arch="all !armhf !s390x"
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/release-service/$pkgver/src/libkdegames-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-lang carddecks::noarch"

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

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target 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="978e4d16cb4a97f1b50398ff9e7b872110898af80cb51d7c472ab626a2b736b5931ad1a3f007e5e322aea4cff3a05fff0ffc1b0dd5a377aaf70f207086d25b44  libkdegames-20.08.2.tar.xz"