From 0a13fb94842c0cc45ba581430ac4d75ef9fefdd7 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sat, 14 Oct 2017 01:09:14 -0500 Subject: user/kjumpingcube: new package --- user/kjumpingcube/APKBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 user/kjumpingcube/APKBUILD (limited to 'user/kjumpingcube') 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 +# Maintainer: A. Wilcox +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" -- cgit v1.2.3-70-g09d2