summaryrefslogtreecommitdiff
path: root/user/katomic
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-10-13 21:57:01 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2017-10-13 21:57:01 -0500
commit9ddf3d5a8a35563740ef7a2bead01484a64c66ee (patch)
treee70322b164bdef4dc267edc63bc7d83ea406f9c7 /user/katomic
parent0832724f32bcd50232d43daae63fab9aa3b5df6f (diff)
downloadpackages-9ddf3d5a8a35563740ef7a2bead01484a64c66ee.tar.gz
packages-9ddf3d5a8a35563740ef7a2bead01484a64c66ee.tar.bz2
packages-9ddf3d5a8a35563740ef7a2bead01484a64c66ee.tar.xz
packages-9ddf3d5a8a35563740ef7a2bead01484a64c66ee.zip
user/katomic: new package
Diffstat (limited to 'user/katomic')
-rw-r--r--user/katomic/APKBUILD45
1 files changed, 45 insertions, 0 deletions
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 <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+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"