diff options
Diffstat (limited to 'extra/bzflag')
-rw-r--r-- | extra/bzflag/PKGBUILD | 45 |
1 files changed, 25 insertions, 20 deletions
diff --git a/extra/bzflag/PKGBUILD b/extra/bzflag/PKGBUILD index b0f79e140..35af04bad 100644 --- a/extra/bzflag/PKGBUILD +++ b/extra/bzflag/PKGBUILD @@ -1,30 +1,35 @@ -# $Id: PKGBUILD 84161 2010-06-26 23:01:03Z kevin $ +# $Id: PKGBUILD 136398 2011-08-29 05:25:50Z bisson $ # Contributor: Damir Perisa <damir.perisa@bluewin.ch> -# Maintainer: Kevin Piche <kevin@archlinux.org> +# Contributor: Kevin Piche <kevin@archlinux.org> +# Maintainer: Gaetan Bisson <bisson@archlinux.org> pkgname=bzflag -pkgver=2.0.16 +pkgver=2.4.0 pkgrel=1 -pkgdesc="A multiplayer 3D tank battle game" -depends=('curl' 'mesa' 'sdl') -arch=('i686' 'x86_64' 'mips64el') +pkgdesc='Multiplayer 3D tank battle game' +url='http://bzflag.org/' license=('LGPL') -options=(!libtool) -url="http://www.bzflag.org" -source=(http://downloads.sourceforge.net/sourceforge/bzflag/$pkgname-$pkgver.tar.bz2) -md5sums=('161b973bee586d43ebff4695dfb8c359') +options=('!libtool') +arch=('i686' 'x86_64' 'mips64el') +depends=('curl' 'glew' 'mesa' 'sdl') +source=("http://downloads.sourceforge.net/project/bzflag/bzflag%20source/${pkgver}/bzflag-${pkgver}.tar.bz2") +sha1sums=('af469d63af7143479176ea0ac91ce2eaa6e4561f') build() { - cd "${srcdir}/${pkgname}-${pkgver}" + cd "${srcdir}/${pkgname}-${pkgver}" + + ./configure --prefix=/usr + make + + cd misc + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" - ./configure --prefix=/usr || return 1 - make || return 1 - make DESTDIR="${pkgdir}" install || return 1 + make DESTDIR="${pkgdir}" install - # gnome menu entry and icon. - cd misc - make || return 1 - mkdir -p ${pkgdir}/usr/share/{applications,pixmaps} - install -m644 bzflag.desktop $pkgdir/usr/share/applications/bzflag.desktop - install -m644 ../data/bzflag-48x48.png $pkgdir/usr/share/pixmaps/bzflag-48x48.png + install -Dm644 misc/bzflag.desktop "${pkgdir}"/usr/share/applications/bzflag.desktop + install -Dm644 data/bzflag-48x48.png "${pkgdir}"/usr/share/pixmaps/bzflag-48x48.png } |