[arch-commits] Commit in kdegames/repos (3 files)
Pierre Schmitz
pierre at archlinux.org
Thu Jul 24 19:44:52 UTC 2008
Date: Thursday, July 24, 2008 @ 15:44:52
Author: pierre
Revision: 6516
Merged revisions 6312-6515 via svnmerge from
svn+ssh://svn.archlinux.org/home/svn-packages/kdegames/trunk
........
r6514 | pierre | 2008-07-24 19:31:05 +0000 (Do, 24 Jul 2008) | 1 line
upgpkg: kdegames 4.1.0-2
........
Added:
kdegames/repos/testing-i686/kdegames.install
(from rev 6514, kdegames/trunk/kdegames.install)
Modified:
kdegames/repos/testing-i686/ (properties)
kdegames/repos/testing-i686/PKGBUILD
------------------+
PKGBUILD | 17 ++++++++++-------
kdegames.install | 21 +++++++++++++++++++++
2 files changed, 31 insertions(+), 7 deletions(-)
Property changes on: kdegames/repos/testing-i686
___________________________________________________________________
Name: svnmerge-integrated
- /kdegames/trunk:1-6311
+ /kdegames/trunk:1-6515
Modified: testing-i686/PKGBUILD
===================================================================
--- testing-i686/PKGBUILD 2008-07-24 19:31:53 UTC (rev 6515)
+++ testing-i686/PKGBUILD 2008-07-24 19:44:52 UTC (rev 6516)
@@ -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
Copied: kdegames/repos/testing-i686/kdegames.install (from rev 6514, kdegames/trunk/kdegames.install)
===================================================================
--- testing-i686/kdegames.install (rev 0)
+++ testing-i686/kdegames.install 2008-07-24 19:44:52 UTC (rev 6516)
@@ -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