summaryrefslogtreecommitdiff
path: root/user/knavalbattle
diff options
context:
space:
mode:
Diffstat (limited to 'user/knavalbattle')
-rw-r--r--user/knavalbattle/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/user/knavalbattle/APKBUILD b/user/knavalbattle/APKBUILD
new file mode 100644
index 000000000..73fbb8ba5
--- /dev/null
+++ b/user/knavalbattle/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=knavalbattle
+pkgver=18.08.3
+pkgrel=0
+pkgdesc="Ship sinking game from KDE"
+url="https://www.kde.org/applications/games/knavalbattle/"
+arch="all"
+license="GPL-2.0-only"
+depends=""
+makedepends="cmake extra-cmake-modules qt5-qtbase-dev kconfig-dev kcrash-dev
+ kdbusaddons-dev kdnssd-dev kdoctools-dev ki18n-dev ktextwidgets-dev
+ kxmlgui-dev libkdegames-dev"
+subpackages="$pkgname-doc $pkgname-lang"
+source="https://download.kde.org/stable/applications/$pkgver/src/knavalbattle-$pkgver.tar.xz"
+
+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="d0d41ab446f2583bcbf5ca9486ef1b2c622c82c39d0aad0abdb371b99461c59fdd5488e67bde9ab12953043e4a0b4dec7dbfe5d605c8ffdddd1d927b647d1b3b knavalbattle-18.08.3.tar.xz"