summaryrefslogtreecommitdiff
path: root/extra/xbill/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/xbill/PKGBUILD')
-rw-r--r--extra/xbill/PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/extra/xbill/PKGBUILD b/extra/xbill/PKGBUILD
new file mode 100644
index 000000000..7b9503c78
--- /dev/null
+++ b/extra/xbill/PKGBUILD
@@ -0,0 +1,39 @@
+# $Id: PKGBUILD 122895 2011-05-07 05:36:47Z eric $
+# Maintainer: Eric BĂ©langer <eric@archlinux.org>
+
+pkgname=xbill
+pkgver=2.1
+pkgrel=7
+pkgdesc="A game that tests your reflexes as you seek and destroy all forms of Bill"
+arch=('i686' 'x86_64' 'mips64el')
+url="http://www.xbill.org/"
+license=('GPL')
+depends=('xaw3d')
+makedepends=('libxaw')
+install=xbill.install
+source=(http://www.xbill.org/download/${pkgname}-${pkgver}.tar.gz)
+md5sums=('585e4866b15255a24203db9959407b2f')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./configure --prefix=/usr --mandir=/usr/share/man --localstatedir=/var/games \
+ --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}/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"
+}