summaryrefslogtreecommitdiff
path: root/extra/xbill
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-05-08 22:33:52 +0000
committerroot <root@rshg047.dnsready.net>2011-05-08 22:33:52 +0000
commit886d3d0994eb8e9f3e797155619619e0ef1353f8 (patch)
treeaecae53a57082f8f3e4b72755149285659c1bee3 /extra/xbill
parentfe6dc99352fe2b801d251e55b2b8baa71441908e (diff)
Sun May 8 22:33:51 UTC 2011
Diffstat (limited to 'extra/xbill')
-rw-r--r--extra/xbill/PKGBUILD40
-rw-r--r--extra/xbill/xbill.install5
2 files changed, 25 insertions, 20 deletions
diff --git a/extra/xbill/PKGBUILD b/extra/xbill/PKGBUILD
index 1791d4507..98054c7eb 100644
--- a/extra/xbill/PKGBUILD
+++ b/extra/xbill/PKGBUILD
@@ -1,35 +1,39 @@
-# $Id: PKGBUILD 22212 2008-12-23 06:11:22Z eric $
-# Maintainer: Arjan Timmerman <arjan@archlinux.org>
-# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
+# $Id: PKGBUILD 122895 2011-05-07 05:36:47Z eric $
+# Maintainer: Eric BĂ©langer <eric@archlinux.org>
pkgname=xbill
pkgver=2.1
-pkgrel=6
-pkgdesc="Xbill is a game that tests you reflexes as you seek and destroy all forms of Bill"
+pkgrel=7
+pkgdesc="A game that tests your reflexes as you seek and destroy all forms of Bill"
arch=('i686' 'x86_64')
url="http://www.xbill.org/"
license=('GPL')
-depends=('xaw3d>=1.5E' 'libxaw')
+depends=('xaw3d')
+makedepends=('libxaw')
install=xbill.install
-source=(http://www.xbill.org/download/$pkgname-$pkgver.tar.gz)
+source=(http://www.xbill.org/download/${pkgname}-${pkgver}.tar.gz)
md5sums=('585e4866b15255a24203db9959407b2f')
build() {
- cd $srcdir/$pkgname-$pkgver
+ cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr --mandir=/usr/share/man --localstatedir=/var/games \
- --disable-motif --enable-athena --disable-gtk || return 1
- make || return 1
- make DESTDIR=$pkgdir install || return 1
+ --disable-motif --enable-athena --disable-gtk
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
# set appropriate permissions and destinations
- chown root:games $pkgdir/usr/bin/xbill
- chmod 2755 $pkgdir/usr/bin/xbill
+ chown root:games "${pkgdir}/usr/bin/xbill"
+ chmod 2755 "${pkgdir}/usr/bin/xbill"
- chown root:games $pkgdir/var/games
- chmod 775 $pkgdir/var/games
- chown root:games $pkgdir/var/games/xbill
- chmod 775 $pkgdir/var/games/xbill
+ chown root:games "${pkgdir}/var/games"
+ chmod 775 "${pkgdir}/var/games"
+ chown root:games "${pkgdir}/var/games/xbill"
+ chmod 775 "${pkgdir}/var/games/xbill"
# Handle the scores file creation in the install script
- rm $pkgdir/var/games/xbill/scores
+ rm "${pkgdir}/var/games/xbill/scores"
}
diff --git a/extra/xbill/xbill.install b/extra/xbill/xbill.install
index 014c0d54b..b68d88071 100644
--- a/extra/xbill/xbill.install
+++ b/extra/xbill/xbill.install
@@ -1,6 +1,7 @@
pre_install() {
- if [ ! -e var/games/xbill/scores ]; then
- [ -e usr/var/xbill/scores ] && mv usr/var/xbill/scores var/games/xbill/scores
+ if [ ! -e var/games/xbill/scores -a -e usr/var/xbill/scores ]; then
+ mkdir -p var/games/xbill
+ mv usr/var/xbill/scores var/games/xbill/scores
fi
}