updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / racer / PKGBUILD
blob80696a87e0019e6771611073e3f45c198b94aac3
1 # Maintainer: jose <jose1711 [at] gmail (dot) com>
3 pkgname=racer
4 pkgver=1.1.1
5 pkgrel=3
6 pkgdesc="2D car racing game"
7 arch=('i686')
8 url="http://hippo.nipax.cz/download.cz.php?id=64"
9 license=("GPL-2")
10 depends=('allegro4' 'libjpeg')
11 source=("http://hippo.nipax.cz/src/${pkgname}-${pkgver}.tar.gz")
12 md5sums=('7f2c8982e3960d0282117b57ac749de1')
13 install=('racer.install')
15 build() {
16 cd $srcdir/${pkgname}-${pkgver}/src
17 make
20 package() {
21 cd $srcdir/${pkgname}-${pkgver}/src
22 mkdir -p $pkgdir/usr/share/racer/{data,gfx,maps} $pkgdir/usr/bin
23 install -D -m755 racer $pkgdir/usr/share/racer/racer
24 cd ../data
25 ln -s /usr/share/racer/racer ./racer
26 install -D -m644 data/* $pkgdir/usr/share/racer/data
27 install -D -m644 gfx/* $pkgdir/usr/share/racer/gfx
28 install -D -m644 maps/* $pkgdir/usr/share/racer/maps
29 cd ../misc
30 install -D -m644 racer.6.gz $pkgdir/usr/share/man/man6/racer.6.gz
31 install -D -m644 racer.xpm $pkgdir/usr/share/pixmaps/racer.xpm
32 install -D -m644 racer.desktop $pkgdir/usr/share/applications/racer.desktop
34 (echo "#!/bin/bash
35 cd /usr/share/racer
36 ./racer \"\$@\"") > $pkgdir/usr/bin/racer
37 chmod 755 $pkgdir/usr/bin/racer