updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / tileracer / PKGBUILD
blob5f42e225e497c5d03f46e7c8a6f991d3e91ed189
1 # Maintainer: Gadget3000 <gadget3000 at msn dot com>
2 # Contributor: Patrik Ilg <p.ilg@arcor.de>
4 pkgname=tileracer
5 pkgver=0.702
6 pkgdesc="3D stunt racing game which features realistic car physics and an in game track editor"
7 pkgrel=2
8 arch=('i686' 'x86_64')
9 url="http://tileracer.model-view.com"
10 license=('None')
11 if [ "$CARCH" = "x86_64" ]; then
12         depends=('lib32-libgl' 'lib32-mesa')
13 else
14         depends=('libgl' 'mesa')
16 conflicts=('physx' 'lib32-physx')
17 source=(http://tileracer.model-view.com/mirrordownload.php?file=TileRacer${pkgver}.tar.gz TileRacer.desktop)
18 md5sums=('c9d1d9fcc835aaf07933b7608f03d542'
19          'b81904a3a0a59df5ce5631a8f2f89fae')
20 noextract=(mirrordownload.php?file=TileRacer${pkgver}.tar.gz)
22 build()
24   mkdir -p "$pkgdir/usr/share/applications"
25   cp "$srcdir/TileRacer.desktop" "$pkgdir/usr/share/applications/"
26   mkdir -p "$pkgdir/usr/share/${pkgname}"
27   cd "$srcdir/"
28   tar xzvf mirrordownload.php?file=TileRacer${pkgver}.tar.gz -C "$pkgdir/usr/share/${pkgname}"
29   chown -Rh root:root $pkgdir/usr/share/${pkgname}
31   install -d $pkgdir/usr/bin
32   echo \#\!/bin/sh > $pkgdir/usr/bin/tileracer
33   echo /usr/share/tileracer/TileRacer.sh >> $pkgdir/usr/bin/tileracer
34   chmod +x $pkgdir/usr/bin/tileracer