[arch-commits] Commit in kdegames/trunk (PKGBUILD kdegames.install)

Pierre Schmitz pierre at archlinux.org
Thu Jul 24 15:31:16 EDT 2008


    Date: Thursday, July 24, 2008 @ 15:31:05
  Author: pierre
Revision: 6514

upgpkg: kdegames 4.1.0-2

Added:
  kdegames/trunk/kdegames.install
Modified:
  kdegames/trunk/PKGBUILD

------------------+
 PKGBUILD         |   17 ++++++++++-------
 kdegames.install |   21 +++++++++++++++++++++
 2 files changed, 31 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2008-07-24 19:06:39 UTC (rev 6513)
+++ PKGBUILD	2008-07-24 19:31:05 UTC (rev 6514)
@@ -3,16 +3,16 @@
 
 pkgname=kdegames
 pkgver=4.1.0
-pkgrel=1
+pkgrel=2
 pkgdesc="KDE Games"
 arch=('i686' 'x86_64')
 url='http://www.kde.org'
 license=('GPL' 'LGPL' 'FDL')
 groups=('kde')
-depends=('kdelibs')
-makedepends=('pkgconfig' 'cmake' 'automoc4' 'ggz-client-libs')
-conflicts=('gnome-games')
+depends=('kdelibs' 'ggz-client-libs')
+makedepends=('pkgconfig' 'cmake' 'automoc4')
 options=('docs')
+install='kdegames.install'
 source=("ftp://ftp.archlinux.org/other/kde/${pkgname}-${pkgver}.tar.bz2")
 md5sums=('86ae1765e40bfbbf0e2c0ff165fce6cd')
 
@@ -25,6 +25,9 @@
 		-DCMAKE_INSTALL_PREFIX=/usr
 	make
 	make DESTDIR=$pkgdir install
-	# correct permissons
-	chmod 755 $pkgdir/etc
-}
+	# will be generated during install
+	rm -rf $pkgdir/etc
+	install -D -m644 $srcdir/${pkgname}-${pkgver}/kreversi/module.dsc $pkgdir/usr/share/ggz/kreversi.dsc
+	install -D -m644 $srcdir/${pkgname}-${pkgver}/ksquares/src/module.dsc $pkgdir/usr/share/ggz/ksquares.dsc
+	install -D -m644 $srcdir/${pkgname}-${pkgver}/kbattleship/src/module.dsc $pkgdir/usr/share/ggz/kbattleship.dsc
+}
\ No newline at end of file

Added: kdegames.install
===================================================================
--- kdegames.install	                        (rev 0)
+++ kdegames.install	2008-07-24 19:31:05 UTC (rev 6514)
@@ -0,0 +1,21 @@
+post_install() {
+	ggz-config -i -f -m usr/share/ggz/kreversi.dsc >& /dev/null
+	ggz-config -i -f -m usr/share/ggz/ksquares.dsc >& /dev/null
+	ggz-config -i -f -m usr/share/ggz/kbattleship.dsc >& /dev/null
+}
+
+pre_remove() {
+	if [ -f usr/share/ggz/kreversi.dsc ]; then
+		ggz-config -r -m usr/share/ggz/kreversi.dsc >& /dev/null
+		ggz-config -r -m usr/share/ggz/ksquares.dsc >& /dev/null
+		ggz-config -r -m usr/share/ggz/kbattleship.dsc >& /dev/null
+	fi
+}
+
+pre_upgrade() {
+	pre_remove $1
+}
+
+post_upgrade() {
+	post_install $1
+}
\ No newline at end of file





More information about the arch-commits mailing list