1 # Maintainer: Austin <doorknob60 at gmail dot com>
5 pkgdesc="fretsonfire X (FoFiX). Highly improved version of Frets on Fire (GIT Version)"
7 url="http://code.google.com/p/fofix/"
10 depends=('python2' 'python-pygame' 'python-opengl' 'python2-numpy' 'python-imaging' 'pyogg' 'pyvorbis' 'python-pysqlite' 'pyxml' 'libffi' 'cython2')
11 optdepends=('pyaudio: microphone support')
13 install=${pkgname}.install
14 source=('fofix-git.desktop' 'fofix-git.png')
15 md5sums=('b7f141bb1045159e5075ecdb3f59adff' 'f886a7fdfa7592b50aa9f62901910e03')
17 _gitroot="http://github.com/stump/fofix.git"
22 msg "Connecting to GIT server...."
24 if [ -d $_gitname ] ; then
25 cd $_gitname && git pull origin
26 msg "The local files are updated."
28 git clone $_gitroot $_gitname
31 msg "GIT checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf "$srcdir/$_gitname-build"
35 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36 cd "$srcdir/$_gitname-build"
39 python2 setup.py build_ext --inplace --force
41 install -d $pkgdir/usr/
42 install -d $pkgdir/usr/share/
43 install -d $pkgdir/usr/share/applications/
44 install -d $pkgdir/usr/share/pixmaps/
45 install -d $pkgdir/usr/bin/
46 install -d $pkgdir/opt/
48 cp ${startdir}/fofix-git.desktop ${pkgdir}/usr/share/applications/
49 cp ${startdir}/fofix-git.png ${pkgdir}/usr/share/pixmaps/
50 mv ${srcdir}/fofix-build $pkgdir/opt/fofix-git
52 echo "#/bin/sh" > fofix-git
53 echo "cd /opt/fofix-git/src/" >> fofix-git
54 echo "python2 ./FoFiX.py" >> fofix-git
56 chmod -R 777 $pkgdir/opt/fofix-git