diff options
Diffstat (limited to 'user/libkmahjongg')
-rw-r--r-- | user/libkmahjongg/APKBUILD | 45 |
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" |