aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2019-09-04 11:39:27 +0200
committerLeo <thinkabit.ukim@gmail.com>2019-09-04 08:35:38 -0300
commit45eb151556bbe5615357cf651aa288fe3b17fca9 (patch)
treefffbfcc0f3abb280b4232219892fa9cbc131ecb0
parent3fbee735c3c5ae78fb1a73c8b4409d63bc8b8237 (diff)
downloadaports-45eb151556bbe5615357cf651aa288fe3b17fca9.tar.gz
aports-45eb151556bbe5615357cf651aa288fe3b17fca9.tar.bz2
aports-45eb151556bbe5615357cf651aa288fe3b17fca9.tar.xz
testing/libkdegames: new aport
-rw-r--r--testing/libkdegames/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/libkdegames/APKBUILD b/testing/libkdegames/APKBUILD
new file mode 100644
index 0000000000..fb9bb827d7
--- /dev/null
+++ b/testing/libkdegames/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Bart Ribbers <bribbers@disroot.org>
+# Maintainer: Bart Ribbers <bribbers@disroot.org>
+pkgname=libkdegames
+pkgver=19.08.0
+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="4596fa69729f742a2c621993020e11056762daae0dad15dbfc4b09e559a6ec5dd551ea0e13a731337f7c09aba99b9d062c98a2de0a988845d813fa709b38bf2e libkdegames-19.08.0.tar.xz"