1 # Maintainer: Todd Partridge <dirk.r.gently@gmail.com>
2 # Contributor: Stefan Lohmaier <noneus@noneus.de>
7 pkgdesc="Drift Racing Simulation Game (Full-Install)"
8 url="http://vdrift.net"
11 depends=('freealut' 'glew' 'mesa' 'sdl_gfx' 'sdl_image' 'sdl_net')
12 makedepends=('asio' 'boost' 'scons' 'subversion')
16 source=(vdrift.desktop vdrift.sh scons.patch)
18 _svntrunk=http://svn.vdrift.net/repos/vdrift/trunk
24 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
26 svn co https://vdrift.svn.sourceforge.net/svnroot/vdrift/vdrift-data data
29 msg "SVN checkout done or server timeout"
30 msg "Starting make..."
33 msg "Copying SVN checkout to build directory. This will take a while..."
34 cp -r $_svnmod $_svnmod-build
36 patch -p0 < $srcdir/scons.patch
38 mkdir -p $pkgdir/usr/bin
39 mkdir -p $pkgdir/usr/share/applications
40 mkdir -p $pkgdir/usr/share/icons/hicolor/16x16/apps
41 mkdir -p $pkgdir/usr/share/icons/hicolor/32x32/apps
42 mkdir -p $pkgdir/usr/share/icons/hicolor/64x64/apps
44 # Compile flags to pass to SCONS (a64 for x86_64, 686 for i686)
45 if [ "$CARCH" = "x86_64" ]; then
46 _SCONSARCH="arch=a64"; else
50 #SCONSFLAGS="destdir=$pkgdir release=1 os_cxxflags=1 force_feedback=1 \
52 #SCONSFLAGS="destdir=$pkgdir release=1 os_cxxflags=1 force_feedback=1"
53 SCONSFLAGS="destdir=$pkgdir release=1 $_SCONSARCH force_feedback=1 prefix=/usr"
54 scons install $SCONSFLAGS
56 #copy icons & desktop file, shell script
57 # install -D -m755 $srcdir/vdrift.sh $pkgdir/usr/bin/vdrift
58 install -D -m644 data/textures/icons/vdrift-16x16.png $pkgdir/usr/share/icons/hicolor/16x16/apps/vdrift.png
59 install -D -m644 data/textures/icons/vdrift-32x32.png $pkgdir/usr/share/icons/hicolor/32x32/apps/vdrift.png
60 install -D -m644 data/textures/icons/vdrift-64x64.png $pkgdir/usr/share/icons/hicolor/64x64/apps/vdrift.png
61 install -D -m644 $srcdir/vdrift.desktop $pkgdir/usr/share/applications
63 rm -rf $srcdir/$_svnmod-build
66 md5sums=('7b0f8ddd70620311e05f67c93f32b775'
67 '6b3dc521abb5c3ccc5f681c71a0bac35'
68 'c2f9af3f77a340b4eb29e2811bb8cb60')