updated on Wed Jan 25 20:08:56 UTC 2012
[aur-mirror.git] / stuntrally / PKGBUILD
blob50e34fc233f7067a44bf57be5a194a76cc653b38
1 # Maintainer: Sven Schneider <archlinux.sandmann@googlemail.com>
2 # Contributor: Jason Melton <jason.melton@gmail.com>
4 pkgname=stuntrally
5 pkgver=1.4
6 pkgrel=2
7 pkgdesc="Stunt Rally game with track editor, based on VDrift and OGRE"
8 arch=('i686' 'x86_64')
9 license=('GPL3')
10 url="http://code.google.com/p/vdrift-ogre"
11 depends=('libvorbis' 'mygui' 'sdl')
12 makedepends=('cmake' 'boost')
13 source=(src.tgz::https://nodeload.github.com/stuntrally/stuntrally/tarball/1.4
14         tracks.tgz::https://nodeload.github.com/stuntrally/tracks/tarball/1.4)
15 md5sums=('5b91e8429ae2101584b64e09c6e87b26'
16                  '44507258f4cec4c5b31a1446722e095e')
18 build() {
19         # build the sources
20         cd "${srcdir}/stuntrally-stuntrally-4692afe/"
21         
22         rm -rf build
23         mkdir build && cd build
24         
25         cmake -DCMAKE_INSTALL_PREFIX="/usr" -DSHARE_INSTALL="share/stuntrally/" ..
26         make
27         
28         
29         # build the tracks
30         cd "${srcdir}/stuntrally-tracks-b5a8a2d/"
31         
32         cmake -DCMAKE_INSTALL_PREFIX="/usr" .
33         make
36 package() {
37         #install the sources
38         cd "${srcdir}/stuntrally-stuntrally-4692afe/build/"
39         
40         make DESTDIR="${pkgdir}" install
41         
42         
43         # install the tracks
44         cd "${srcdir}/stuntrally-tracks-b5a8a2d/"
46         make DESTDIR="${pkgdir}/usr/share/stuntrally/" install