# Maintainer: François Magimel # Contributor: Austin _gitname=fofix pkgname=fofix-git pkgver=v4.0.0alpha2.r324.g0f69173 epoch=1 pkgrel=4 pkgdesc="Frets on Fire X (FoFiX). Highly improved version of Frets on Fire (Git Version)" arch=('i686' 'x86_64') url="https://github.com/fofix/fofix" license=('GPL') groups=('games') depends=( 'ffmpeg' 'python2' 'python2-pygame' 'python2-opengl' 'python2-numpy' 'python2-pillow' 'python2-cerealizer' 'python2-fretwork-git' 'python2-opengl' 'python2-pysqlite' 'libffi' 'cython2' 'pkg-config' 'soundtouch' 'glu' ) optdepends=( 'python2-pyaudio: microphone support' 'gettext: for translations' ) makedepends=('git') install=${pkgname}.install source=( 'fofix-git.desktop' 'fofix-git.png' 'git+http://github.com/fofix/fofix.git' ) md5sums=('7ad2bde66aea003e1cc152b7650453ea' 'f886a7fdfa7592b50aa9f62901910e03' 'SKIP') pkgver() { cd "$_gitname" git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { cd "$srcdir/fofix" python2 setup.py build_ext --inplace --force python2 setup.py msgfmt } package() { install -d $pkgdir/usr/ install -d $pkgdir/usr/share/ install -d $pkgdir/usr/share/applications/ install -d $pkgdir/usr/share/pixmaps/ install -d $pkgdir/usr/bin/ install -d $pkgdir/opt/ cd ${srcdir} cp fofix-git.desktop ${pkgdir}/usr/share/applications/ cp fofix-git.png ${pkgdir}/usr/share/pixmaps/ mv ${srcdir}/fofix $pkgdir/opt/fofix-git cd $pkgdir/usr/bin/ echo "#!/bin/sh" > fofix-git echo "cd /opt/fofix-git/" >> fofix-git echo "python2 ./FoFiX.py" >> fofix-git chmod +x fofix-git chmod -R 777 $pkgdir/opt/fofix-git }