updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / bjs / PKGBUILD
blob405653fde45afa00dbfbd77864b3804c0ea73b50
1 # Contributor: zoulnix <http://goo.gl/HQaP>
2 pkgname=bjs
3 pkgver=0.1.3
4 pkgrel=2
5 pkgdesc="Arcade tank battle in 3D."
6 arch=('i686' 'x86_64')
7 url="http://bjs.sourceforge.net/"
8 license=('GPL')
9 depends=('cegui' 'lua' 'omniorb' 'openal' 'sdl_image' \
10          'sdl_mixer' 'sdl_ttf' 'ttf-dejavu' 'ttf-freefont')
11 makedepends=('gcc' 'make' 'patch' 'pkg-config')
12 options=('!libtool')
13 source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz \
14         ${pkgname}-mkfix.diff)
15 md5sums=('1d6d1d850335fe5ec98fcdc432a54606' 'f6211a663bb72aea4eec129d61ea5702')
17 build() { 
18   cd ${srcdir}/${pkgname}-${pkgver}
20   # apply some patches...
21   patch -Np1 -i ${startdir}/${pkgname}-mkfix.diff || return 1
23   make || return 1
26 package() {
27   cd ${srcdir}/${pkgname}-${pkgver}
29   make DESTDIR=${pkgdir}/usr install || return 1
31   # symlink fonts...
32   rm ${pkgdir}/usr/share/${pkgname}/data/*.tt*
33   ln -s /usr/share/fonts/TTF/DejaVuSansCondensed.ttf ${pkgdir}/usr/share/${pkgname}/data/ || return 1
34   ln -s /usr/share/fonts/TTF/DejaVuSansCondensed-Bold.ttf ${pkgdir}/usr/share/${pkgname}/data/ || return 1
35   ln -s /usr/share/fonts/TTF/FreeMono.ttf ${pkgdir}/usr/share/${pkgname}/data/ || return 1