diff options
Diffstat (limited to 'user/kjumpingcube')
-rw-r--r-- | user/kjumpingcube/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/user/kjumpingcube/APKBUILD b/user/kjumpingcube/APKBUILD new file mode 100644 index 000000000..3f13749c8 --- /dev/null +++ b/user/kjumpingcube/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=kjumpingcube +pkgver=17.08.1 +pkgrel=0 +pkgdesc="Dice-driven tactical game" +url="https://games.kde.org/game.php?game=kjumpingcube" +arch="all" +license="GPL-2.0" +depends="" +makedepends="cmake extra-cmake-modules qt5-qtbase-dev qt5-qtsvg-dev kconfig-dev + kcoreaddons-dev kconfigwidgets-dev kcrash-dev kdbusaddons-dev kio-dev + kdoctools-dev ki18n-dev kxmlgui-dev kwidgetsaddons-dev libkdegames-dev" +install="" +subpackages="$pkgname-doc $pkgname-lang" +source="http://download.kde.org/stable/applications/$pkgver/src/kjumpingcube-$pkgver.tar.xz" +builddir="$srcdir/kjumpingcube-$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="59449611d80b544f600abf6524e1469ef6d4d7d86c1bca1a0f19a503584028db4b0aeb948c64ec5a5f04677b38a2dc92899263c7d42416af4b21c2b6ee699a55 kjumpingcube-17.08.1.tar.xz" |