summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 132b1f11d89a5b1127aa89cd09185d8f33eae03b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Maintainer: Fran├žois Magimel <magimel.francois@gmail.com>
# Contributor: Austin <doorknob60 at gmail dot com>

_gitname=fofix
pkgname=fofix-git
pkgver=v4.0.0alpha2.r190.g3fe0f93
epoch=1
pkgrel=1
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-imaging'
  'pyogg'
  'pyvorbis'
  'python2-pysqlite'
  'libffi'
  'cython2'
  'soundtouch'
  'glu'
)
optdepends=('pyaudio: microphone support')
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
}

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 ${startdir}/fofix-git.desktop ${pkgdir}/usr/share/applications/
    cp ${startdir}/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
}