# $Id: PKGBUILD 216440 2014-07-03 21:03:02Z eric $ # Maintainer: Eric BĂ©langer pkgname=xbill pkgver=2.1 pkgrel=9 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' 'libxpm') makedepends=('libxaw') install=xbill.install source=(http://www.xbill.org/download/${pkgname}-${pkgver}.tar.gz) sha1sums=('ca466fb90a7c41055005d2e4dcece2e82b6c55c6') build() { cd ${pkgname}-${pkgver} LIBS='-lXpm' ./configure --prefix=/usr --mandir=/usr/share/man --localstatedir=/var/games \ --disable-motif --enable-athena --disable-gtk make } package() { cd ${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" }