1 # Contributor: schlaefer <schlaefer[at]gamez-planet.org>
3 pkgname=fretsonfire-svn
6 pkgdesc="A game of musical skill and fast fingers. Play guitar with the keyboard as accurately as possible. Like guitar Hero."
7 url="http://fretsonfire.sourceforge.net/"
10 depends=('sdl' 'sdl_ttf' 'sdl_mixer' 'python-pygame' 'python-opengl' 'pil' 'python-numpy')
11 makedepends=('subversion')
12 optdepends=('glew: Used for render-to-texture support' 'pyogg: Used for streaming OGG files from the disk')
13 [ "$CARCH" = "i686" ] && optdepends[3]='psyco: Used for speed optimization'
14 provides=('fretsonfire' 'bin32-fretsonfire ')
15 conflicts=('fretsonfire' 'bin32-fretsonfire ')
16 source=(fretsonfire.desktop
20 md5sums=('e792e7dfe01775c0034781393c457696'
21 'ae24d6024235ec8ec92b8a391e675a03'
22 '66668cad0211bf4e6ab1bd5efa8f65bf')
24 _svntrunk=https://fretsonfire.svn.sourceforge.net/svnroot/fretsonfire/trunk
29 #Grab the sources with svn
31 if [ -d $_svnmod/.svn ]; then
32 (cd $_svnmod && svn up -r $pkgver) || return 1
34 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod || return 1
36 msg "SVN checkout done or server timeout"
37 msg "Starting make..."
38 rm -r $srcdir/$_svnmod-build
39 cp -r $srcdir/$_svnmod $srcdir/$_svnmod-build
40 cd $srcdir/$_svnmod-build
43 install -d $pkgdir/usr/share/fretsonfire/bin $pkgdir/usr/share/fretsonfire/data || return 1
44 cp -r src/* $pkgdir/usr/share/fretsonfire/bin/ || return 1
45 cp -r data/* $pkgdir/usr/share/fretsonfire/data/ || return 1
47 #Removing junk and setting permissions
48 cd $pkgdir/usr/share/fretsonfire/data
49 rm -r win32/ launcher* Makefile *.svg songs/tutorial/*.svg mods/Chilly/*.svg mods/LightGraphics/*.svg
50 find $pkgdir/usr/share/fretsonfire -type f -exec chmod 664 {} +
51 find $pkgdir/usr/share/fretsonfire -type d -exec chmod 775 {} +
53 #Installing the .desktop and icon files
54 install -D $srcdir/fretsonfire.desktop $pkgdir/usr/share/applications/fretsonfire.desktop
55 install -D $srcdir/fretsonfire.png $pkgdir/usr/share/pixmaps/fretsonfire.png
57 #Installing the bin file
58 install -D -m0755 $srcdir/fretsonfire.sh $pkgdir/usr/bin/fretsonfire