summaryrefslogtreecommitdiff
path: root/user/libkmahjongg/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/libkmahjongg/APKBUILD')
-rw-r--r--user/libkmahjongg/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/user/libkmahjongg/APKBUILD b/user/libkmahjongg/APKBUILD
new file mode 100644
index 000000000..05d4f557b
--- /dev/null
+++ b/user/libkmahjongg/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=libkmahjongg
+pkgver=17.08.2
+pkgrel=0
+pkgdesc="Library with Mah Jongg logic"
+url="https://www.kde.org/"
+arch="all"
+license="LGPL-2.1"
+depends=""
+depends_dev="qt5-qtbase-dev kcoreaddons-dev kconfig-dev kconfigwidgets-dev
+ kcompletion-dev kwidgetsaddons-dev ki18n-dev qt5-qtsvg-dev"
+makedepends="$depends_dev cmake extra-cmake-modules"
+install=""
+subpackages="$pkgname-dev $pkgname-lang"
+source="http://download.kde.org/stable/applications/$pkgver/src/libkmahjongg-$pkgver.tar.xz"
+builddir="$srcdir/libkmahjongg-$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="2a7a74397ee22d1a8a6b988973753150d07a667e98abcba82850d85fc7f841d2c00ba30ade05bef7f4ec17ca75493754615fb52fd57ae8be2a48c8aa8b7d15c5 libkmahjongg-17.08.2.tar.xz"