1 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
2 pkgname=mars-shooter-svn
5 pkgdesc="A ridiculous space shooter with nice graphics"
7 url="http://mars-game.sourceforge.net/"
9 depends=('sfml-git' 'taglib' 'fribidi')
10 makedepends=('cmake' 'subversion')
11 provides=('mars-shooter')
12 conflicts=('mars-shooter')
16 _svntrunk=https://mars-game.svn.sourceforge.net/svnroot/mars-game
22 if [ -d $_svnmod/.svn ]; then
23 (cd $_svnmod && svn up -r $pkgver)
25 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
28 msg "SVN checkout done or server timeout"
29 msg "Starting make..."
31 rm -rf "$srcdir/$_svnmod-build"
32 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
33 cd "$srcdir/$_svnmod-build"
40 cd "$srcdir/$_svnmod-build"
42 mkdir -p $pkgdir/usr/share/marsshooter
43 mkdir -p $pkgdir/usr/bin/
44 cp -r credits.txt data/* license.txt $pkgdir/usr/share/marsshooter
45 cp mars $pkgdir/usr/bin/mars-shooter
46 find $pkgdir -name *.svn | xargs rm -rf
48 sed -i 's/Exec=.*/Exec=mars-shooter/g' resources/mars.desktop
49 install -Dm644 resources/mars.desktop $pkgdir/usr/share/applications/mars.desktop
50 install -Dm644 resources/mars.png $pkgdir/usr/share/pixmaps/mars.png