summaryrefslogtreecommitdiff
path: root/testing/kdegames
diff options
context:
space:
mode:
Diffstat (limited to 'testing/kdegames')
-rw-r--r--testing/kdegames/PKGBUILD32
-rw-r--r--testing/kdegames/kdegames-knavalbattle.install12
2 files changed, 30 insertions, 14 deletions
diff --git a/testing/kdegames/PKGBUILD b/testing/kdegames/PKGBUILD
index c3189dbd6..cd2a79932 100644
--- a/testing/kdegames/PKGBUILD
+++ b/testing/kdegames/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 166091 2012-09-04 16:14:10Z andrea $
+# $Id: PKGBUILD 167624 2012-10-02 19:40:01Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Pierre Schmitz <pierre@archlinux.de>
@@ -9,7 +9,6 @@ pkgname=('kdegames-bomber'
'kdegames-kajongg'
'kdegames-kapman'
'kdegames-katomic'
- 'kdegames-kbattleship'
'kdegames-kblackbox'
'kdegames-kblocks'
'kdegames-kbounce'
@@ -25,6 +24,7 @@ pkgname=('kdegames-bomber'
'kdegames-klickety'
'kdegames-kmahjongg'
'kdegames-kmines'
+ 'kdegames-knavalbattle'
'kdegames-knetwalk'
'kdegames-kolf'
'kdegames-kollision'
@@ -33,17 +33,17 @@ pkgname=('kdegames-bomber'
'kdegames-kreversi'
'kdegames-kshisen'
'kdegames-ksirk'
+ 'kdegames-ksnakeduel'
'kdegames-kspaceduel'
'kdegames-ksquares'
'kdegames-ksudoku'
- 'kdegames-ktron'
'kdegames-ktuberling'
'kdegames-kubrick'
'kdegames-libkdegames'
'kdegames-libkmahjongg'
'kdegames-lskat'
'kdegames-palapeli')
-pkgver=4.9.1
+pkgver=4.9.2
pkgrel=1
arch=('i686' 'x86_64')
url='http://www.kde.org'
@@ -52,7 +52,7 @@ groups=('kde' 'kdegames')
makedepends=('cmake' 'automoc4' 'twisted' 'kdebindings-python2'
'openal')
source=("http://download.kde.org/stable/${pkgver}/src/${pkgbase}-${pkgver}.tar.xz")
-sha1sums=('5fc77f230cff0a9b243403affc176e4e4757a1e7')
+sha1sums=('a751f6b9ed6c24f8a420d6737be87f2bbb0c2cb3')
build() {
cd $srcdir
@@ -123,12 +123,14 @@ package_kdegames-katomic() {
make DESTDIR=$pkgdir install
}
-package_kdegames-kbattleship() {
- pkgdesc='Battleship Game'
+package_kdegames-knavalbattle() {
+ pkgdesc='Naval Battle'
depends=('kdebase-runtime' 'kdegames-libkdegames')
- url="http://kde.org/applications/games/kbattleship/"
- install='kdegames-kbattleship.install'
- cd $srcdir/build/kbattleship
+ url="http://kde.org/applications/games/knavalbattle/"
+ install='kdegames-knavalbattle.install'
+ replaces=('kdegames-kbattleship')
+ conflicts=('kdegames-kbattleship')
+ cd $srcdir/build/knavalbattle
make DESTDIR=$pkgdir install
}
@@ -369,12 +371,14 @@ package_kdegames-ksudoku() {
make DESTDIR=$pkgdir install
}
-package_kdegames-ktron() {
- pkgdesc='Tron-like Game'
+package_kdegames-ksnakeduel() {
+ pkgdesc='Snake-like Game'
depends=('kdebase-runtime' 'kdegames-libkdegames')
- url="http://kde.org/applications/games/ktron/"
+ url="http://kde.org/applications/games/ksnakeduel/"
install='kdegames.install'
- cd $srcdir/build/ktron
+ replaces=('kdegames-ktron')
+ conflicts=('kdegames-ktron')
+ cd $srcdir/build/ksnakeduel
make DESTDIR=$pkgdir install
}
diff --git a/testing/kdegames/kdegames-knavalbattle.install b/testing/kdegames/kdegames-knavalbattle.install
new file mode 100644
index 000000000..81ce5c4b0
--- /dev/null
+++ b/testing/kdegames/kdegames-knavalbattle.install
@@ -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
+}