From 9ddf3d5a8a35563740ef7a2bead01484a64c66ee Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Fri, 13 Oct 2017 21:57:01 -0500 Subject: user/katomic: new package --- user/katomic/APKBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 user/katomic/APKBUILD (limited to 'user') diff --git a/user/katomic/APKBUILD b/user/katomic/APKBUILD new file mode 100644 index 000000000..e0973a8e9 --- /dev/null +++ b/user/katomic/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: A. Wilcox +# Maintainer: A. Wilcox +pkgname=katomic +pkgver=17.08.1 +pkgrel=0 +pkgdesc="Fun, educational game involving molecular geometry" +url="https://games.kde.org/game.php?game=katomic" +arch="all" +license="GPL-2.0" +depends="" +makedepends="cmake extra-cmake-modules qt5-qtbase-dev kcoreaddons-dev ki18n-dev + kconfig-dev kcrash-dev kwidgetsaddons-dev kxmlgui-dev knewstuff-dev + kdoctools-dev kdbusaddons-dev libkdegames-dev" +install="" +subpackages="$pkgname-doc $pkgname-lang" +source="http://download.kde.org/stable/applications/$pkgver/src/katomic-$pkgver.tar.xz" +builddir="$srcdir/katomic-$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="aa46568994e78265882b31a10760ee4a0abdf6fa6fca56a204b8df716fd433dc22812fa91f857496b8fd01b96a0543a377e0c2092bd738a29934741f6ba8bd1d katomic-17.08.1.tar.xz" -- cgit v1.2.3-70-g09d2