1 # Maintainer: Adrián Chaves Fernández <adriyetichaves@gmail.com>
7 pkgdesc="Racer is a spaceship racing game, inspired by the F-Zero series."
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"
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')
29 cd "${srcdir}/${pkgname2}-${pkgver}"
31 # Enabling debug info in configuration...
32 CPP_FLAGS=-I/usr/include/freetype2 ./configure --enable-debug || return 1
34 # Speed up if x86_64...
35 if [[ $CARCH = 'x86_64' ]]
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
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
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
55 # Installing license...
56 install -D -m644 $srcdir/${pkgname2}.license $pkgdir/usr/share/licenses/${pkgname}/LICENSE