summaryrefslogblamecommitdiff
path: root/user/libkdegames/APKBUILD
blob: 84829d77d75d26e21eb7af8bb412b22022251303 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                  
              



                                                              
                                     
                       
          









                                                                                            
































                                                                                          
                                                                                                                                                                         
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libkdegames
pkgver=18.08.0
pkgrel=0
pkgdesc="Library for common routines shared between KDE games"
url="https://www.kde.org/applications/games/"
arch="all"
options="!check"  # Tests require X11
license="LGPL-2.1-only"
depends=""
depends_dev="qt5-qtbase-dev qt5-qtdeclarative-dev kcompletion-dev"
makedepends="$depends_dev cmake extra-cmake-modules qt5-qtsvg-dev
	libsndfile-dev openal-soft-dev
	karchive-dev kbookmarks-dev kcodecs-dev kconfig-dev kconfigwidgets-dev
	kcoreaddons-dev kcrash-dev kdbusaddons-dev kdeclarative-dev kdnssd-dev
	kglobalaccel-dev kguiaddons-dev ki18n-dev kiconthemes-dev kio-dev
	kitemviews-dev kjobwidgets-dev knewstuff-dev kservice-dev kxmlgui-dev
	ktextwidgets-dev kwidgetsaddons-dev"
subpackages="$pkgname-dev $pkgname-lang $pkgname-carddecks::noarch"
source="https://download.kde.org/stable/applications/$pkgver/src/libkdegames-$pkgver.tar.xz"

build() {
	cd "$builddir"
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		${CMAKE_CROSSOPTS}
	make
}

check() {
	cd "$builddir"
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

carddecks() {
	pkgdesc="Card decks for KDE card games"
	mkdir -p "$subpkgdir"/usr/share/
	mv "$pkgdir"/usr/share/carddecks "$subpkgdir"/usr/share/
}

sha512sums="8ecf3104275c845ae5b914dd507ab77ce0554bda21b0bdece4593e8b8be2041a734987ad19666b8718f2151c1f903ecc5e42bcd38f11d9c4c68d6b6f6961e548  libkdegames-18.08.0.tar.xz"