[arch-commits] Commit in (4 files)

Antonio Rojas arojas at archlinux.org
Thu Nov 19 22:11:36 UTC 2015


    Date: Thursday, November 19, 2015 @ 23:11:36
  Author: arojas
Revision: 251453

Add KF5 version of knavalbattle

Added:
  knavalbattle/
  knavalbattle/kde-unstable/
  knavalbattle/kde-unstable/PKGBUILD
  knavalbattle/kde-unstable/knavalbattle.install

----------------------+
 PKGBUILD             |   39 +++++++++++++++++++++++++++++++++++++++
 knavalbattle.install |   12 ++++++++++++
 2 files changed, 51 insertions(+)

Added: knavalbattle/kde-unstable/PKGBUILD
===================================================================
--- knavalbattle/kde-unstable/PKGBUILD	                        (rev 0)
+++ knavalbattle/kde-unstable/PKGBUILD	2015-11-19 22:11:36 UTC (rev 251453)
@@ -0,0 +1,39 @@
+# $Id: PKGBUILD 251259 2015-11-19 20:20:39Z arojas $
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=knavalbattle
+pkgver=15.11.80
+pkgrel=1
+pkgdesc="A ship sinking game"
+url="http://kde.org/applications/games/knavalbattle/"
+arch=(i686 x86_64)
+license=(GPL LGPL FDL)
+groups=(kde-applications kdegames)
+depends=(libkdegames)
+makedepends=(extra-cmake-modules kdoctools)
+install=$pkgname.install
+conflicts=(kdegames-knavalbattle)
+replaces=(kdegames-knavalbattle)
+source=("http://download.kde.org/unstable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz")
+sha1sums=('f0043dc2c7c4fe086cb72ea1c5bc92ca8d787567')
+
+prepare() {
+  mkdir -p build
+}
+
+build() {
+  cd build
+  cmake ../$pkgname-$pkgver \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DBUILD_TESTING=OFF \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
+  make
+}
+
+package() {
+  cd build
+  make DESTDIR="$pkgdir" install
+}

Added: knavalbattle/kde-unstable/knavalbattle.install
===================================================================
--- knavalbattle/kde-unstable/knavalbattle.install	                        (rev 0)
+++ knavalbattle/kde-unstable/knavalbattle.install	2015-11-19 22:11:36 UTC (rev 251453)
@@ -0,0 +1,12 @@
+post_install() {
+	xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+	update-desktop-database -q
+}
+
+post_upgrade() {
+	post_install
+}
+
+post_remove() {
+	post_install
+}



More information about the arch-commits mailing list