From b82f11fd76e83d60504649838e60a235b394160f Mon Sep 17 00:00:00 2001 From: root Date: Tue, 30 Aug 2011 23:14:43 +0000 Subject: Tue Aug 30 23:14:43 UTC 2011 --- extra/bzflag/PKGBUILD | 45 +++++++++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 20 deletions(-) (limited to 'extra/bzflag') diff --git a/extra/bzflag/PKGBUILD b/extra/bzflag/PKGBUILD index 1589b32e7..c352260ed 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 -# Maintainer: Kevin Piche +# Contributor: Kevin Piche +# Maintainer: Gaetan Bisson 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') +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') +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 } -- cgit v1.2.3-54-g00ecf