summaryrefslogtreecommitdiff
path: root/extra/bzflag/PKGBUILD
blob: 1589b32e78fab4f3600778b56451ecb79ca55c1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# $Id: PKGBUILD 84161 2010-06-26 23:01:03Z kevin $
# Contributor: Damir Perisa <damir.perisa@bluewin.ch>
# Maintainer: Kevin Piche <kevin@archlinux.org>

pkgname=bzflag
pkgver=2.0.16
pkgrel=1
pkgdesc="A multiplayer 3D tank battle game"
depends=('curl' 'mesa' 'sdl')
arch=('i686' 'x86_64')
license=('LGPL')
options=(!libtool)
url="http://www.bzflag.org"
source=(http://downloads.sourceforge.net/sourceforge/bzflag/$pkgname-$pkgver.tar.bz2)
md5sums=('161b973bee586d43ebff4695dfb8c359')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  ./configure --prefix=/usr || return 1
  make || return 1
  make DESTDIR="${pkgdir}" install || return 1

  # 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
}