updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / racer-space / PKGBUILD
blobdf7eb313040b918da82eb808c87952ef15ffd165
1 # Maintainer: Adrián Chaves Fernández <adriyetichaves@gmail.com>
3 pkgname=racer-space
4 pkgname2=racer
5 pkgver=0.0.320
6 pkgrel=2
7 pkgdesc="Racer is a spaceship racing game, inspired by the F-Zero series."
8 arch=('i686' 'x86_64')
9 url="http://racer.sourceforge.net/"
10 license=('GPL3' 'custom:cc-by-2.0-UK')
11 depends=('sdl' 'ftgl' 'bullet' 'boost' 'glew' 'gtkmm' 'gtkglextmm')
12 makedepends=('glproto')
13 source=("http://sourceforge.net/projects/${pkgname2}/files/Source code/${pkgname2}-${pkgver}.tar.gz/download"
14         "${pkgname2}.desktop"
15         "${pkgname2}.sh"
16         "${pkgname2}-editor.desktop"
17         "${pkgname2}-editor.sh"
18         "http://a.fsdn.com/con/icons/ra/${pkgname2}@sf.net/r48.png"
19         "${pkgname2}.license")    
20 md5sums=('f84498492f0c3a61f520bef08e7a4c9f'
21          '878ded015f34309d499a3028eb2cff79'
22          '370c64f02ada877f4ac20fd20043550d'
23          'edf36a3a32efb8ac428690745636df02'
24          'd8f6c91f19cac599f96fbb6453301fa4'
25          '90d253551beddd51eb30a7fce5423170'
26          '6f8cb1c6db6bec251f92c5507c2f59e3')
28 build() {
29   cd "${srcdir}/${pkgname2}-${pkgver}"
30   
31   # Enabling debug info in configuration...
32   CPP_FLAGS=-I/usr/include/freetype2 ./configure --enable-debug || return 1
33   
34   # Speed up if x86_64...
35   if [[ $CARCH = 'x86_64' ]]
36     then
37       make -j2 || return 1
38     else
39       make || return 1
40   fi
41   
42   # Actual installation...
43   mkdir -p ${pkgdir}/usr/local/games/${pkgname}/ || return 1
44   cp -R ${srcdir}/${pkgname2}-${pkgver}/* $pkgdir/usr/local/games/${pkgname}/ || return 1
45   
46   # Adding execution files...
47   install -D -m755 ${srcdir}/${pkgname2}.sh $pkgdir/usr/bin/${pkgname}
48   install -D -m755 ${srcdir}/${pkgname2}-editor.sh $pkgdir/usr/bin/${pkgname}-editor
49   
50   # Installing logo and desktop entry...
51   install -D -m644 $srcdir/${pkgname2}.desktop $pkgdir/usr/share/applications/${pkgname}.desktop
52   install -D -m644 $srcdir/${pkgname2}-editor.desktop $pkgdir/usr/share/applications/${pkgname}-editor.desktop
53   install -D -m644 $srcdir/r48.png $pkgdir/usr/share/pixmaps/${pkgname}.png
54   
55   # Installing license...
56   install -D -m644 $srcdir/${pkgname2}.license $pkgdir/usr/share/licenses/${pkgname}/LICENSE