summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-10-14 01:18:51 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2017-10-14 01:18:51 -0500
commitb6b7f3b59a3091bde72b62646bafdbc5f1679aae (patch)
treedc68e33eb788305c2774ed52994d41b51a7d5dff
parent30e45adf804c68730b4b2f87c80a20aea5ede8e0 (diff)
downloadpackages-b6b7f3b59a3091bde72b62646bafdbc5f1679aae.tar.gz
packages-b6b7f3b59a3091bde72b62646bafdbc5f1679aae.tar.bz2
packages-b6b7f3b59a3091bde72b62646bafdbc5f1679aae.tar.xz
packages-b6b7f3b59a3091bde72b62646bafdbc5f1679aae.zip
user/kmahjongg: new package
-rw-r--r--user/kmahjongg/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/user/kmahjongg/APKBUILD b/user/kmahjongg/APKBUILD
new file mode 100644
index 000000000..e3abe14c8
--- /dev/null
+++ b/user/kmahjongg/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=kmahjongg
+pkgver=17.08.1
+pkgrel=0
+pkgdesc="Mah Jongg desktop game"
+url="https://games.kde.org/game.php?game=kmahjongg"
+arch="all"
+license="GPL-2.0"
+depends=""
+makedepends="cmake extra-cmake-modules qt5-qtbase-dev qt5-qtsvg-dev kconfig-dev
+ kcoreaddons-dev kcrash-dev kdbusaddons-dev kdeclarative-dev kxmlgui-dev
+ kdoctools-dev knewstuff-dev libkdegames-dev libkmahjongg-dev"
+install=""
+subpackages="$pkgname-doc $pkgname-lang"
+source="http://download.kde.org/stable/applications/$pkgver/src/kmahjongg-$pkgver.tar.xz"
+builddir="$srcdir/kmahjongg-$pkgver"
+
+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
+}
+
+sha512sums="596d0f7b89610bd13d0c0a96fcfa6d39d1916afdff690465ae502edd02aa375239c57cb9ea9a80f875b161542697dda062cc0daa10abefe050bf731d20f17109 kmahjongg-17.08.1.tar.xz"