summaryrefslogtreecommitdiff
path: root/user/libkmahjongg/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-10-13 21:53:36 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2017-10-13 21:53:36 -0500
commitbc98d230fff539211a324274be9649034538667d (patch)
treeaee8da841944fc23d582bc1868155042ab0bf7f7 /user/libkmahjongg/APKBUILD
parent801055e5d98ad397517fa41e6980466678d0cbef (diff)
downloadpackages-bc98d230fff539211a324274be9649034538667d.tar.gz
packages-bc98d230fff539211a324274be9649034538667d.tar.bz2
packages-bc98d230fff539211a324274be9649034538667d.tar.xz
packages-bc98d230fff539211a324274be9649034538667d.zip
user/libkmahjongg: new package
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..2b4ab43e8
--- /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.1
+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="c8a4d44ac34b6651f8d24bea4532b6c8450876281c13a0a0b43f76006ff3a51c003edec7355f06f5822a2f6022f95388a46b904ee60b5af825d640f3b8315a07 libkmahjongg-17.08.1.tar.xz"