[arch-commits] CVS update of extra/games/atomix (PKGBUILD atomix.install)
Jan de Groot
jgc at archlinux.org
Sun Apr 22 20:12:39 UTC 2007
Date: Sunday, April 22, 2007 @ 16:12:39
Author: jgc
Path: /home/cvs-extra/extra/games/atomix
Modified: PKGBUILD (1.3 -> 1.4) atomix.install (1.2 -> 1.3)
upgpkg: atomix 2.14.0-1
Use new games group, move to /usr
----------------+
PKGBUILD | 16 ++++++++--------
atomix.install | 30 +++++++++++-------------------
2 files changed, 19 insertions(+), 27 deletions(-)
Index: extra/games/atomix/PKGBUILD
diff -u extra/games/atomix/PKGBUILD:1.3 extra/games/atomix/PKGBUILD:1.4
--- extra/games/atomix/PKGBUILD:1.3 Tue Jul 18 17:03:42 2006
+++ extra/games/atomix/PKGBUILD Sun Apr 22 16:12:38 2007
@@ -1,22 +1,22 @@
-# $Id: PKGBUILD,v 1.3 2006/07/18 21:03:42 andyrtr Exp $
+# $Id: PKGBUILD,v 1.4 2007/04/22 20:12:38 jgc Exp $
# Maintainer: Jan de Groot <jgc at archlinux.org>
pkgname=atomix
-pkgver=1.2.4
+pkgver=2.14.0
pkgrel=1
pkgdesc="puzzle game for building molecules out of isolated atoms"
arch=(i686 x86_64)
url="http://ftp.gnome.org/"
-depends=('libgnomeui')
+depends=('libgnomeui>=2.18.1-2' 'filesystem>=0.8-3')
+makedepends=('pkgconfig')
install=atomix.install
-source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/1.2/${pkgname}-${pkgver}.tar.bz2)
-md5sums=('ddf41160f3e108a9a937af87fa8c24d3')
+source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/2.14/${pkgname}-${pkgver}.tar.bz2)
+md5sums=('54f4b98463b57aebc7692d1b153791af')
build() {
cd ${startdir}/src/${pkgname}-${pkgver}
- ./configure --prefix=/opt/gnome
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
make || return 1
make DESTDIR=${startdir}/pkg install
- rm -rf ${startdir}/pkg/opt/gnome/var
+ rm -rf ${startdir}/pkg/var
}
-
Index: extra/games/atomix/atomix.install
diff -u extra/games/atomix/atomix.install:1.2 extra/games/atomix/atomix.install:1.3
--- extra/games/atomix/atomix.install:1.2 Wed Nov 16 08:46:21 2005
+++ extra/games/atomix/atomix.install Sun Apr 22 16:12:38 2007
@@ -1,21 +1,18 @@
-scores=(
- 'atomix.scores'
-)
+scores=('atomix.scores')
post_install() {
- update-desktop-database -q
- if [ ! -d /opt/gnome/var/games ]; then
- mkdir -p /var/opt/gnome/var/games
- fi
-
for score in "${scores[@]}" ; do
- if [ -e "/opt/gnome/var/games/${score}" ]; then
- chmod 664 "/opt/gnome/var/games/${score}"
+ if [ -e "var/games/${score}" ]; then
continue
fi
- touch "/opt/gnome/var/games/${score}"
- chown root:users "/opt/gnome/var/games/${score}"
- chmod 664 "/opt/gnome/var/games/${score}"
+ if [ -e "opt/gnome/var/games/${score}" ]; then
+ mv "opt/gnome/var/games/${score}" var/games/
+ else
+ touch "var/games/${score}"
+ fi
+
+ chown root:games "var/games/${score}"
+ chmod 664 "var/games/${score}"
done
}
@@ -24,14 +21,9 @@
}
post_remove() {
- update-desktop-database -q
-
for score in "${scores[@]}" ; do
- rm -f "/opt/gnome/var/games/${score}"
+ rm -f "var/games/${score}"
done
- if [ -d /opt/gnome/var/games ]; then
- rmdir --ignore-fail-on-non-empty /opt/gnome/var/games
- fi
}
op=$1
More information about the arch-commits
mailing list