summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: edcc7fe0e15c05606cd4ad054f4dead310e1cc0c (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
69
70
71
72
73
# Maintainer: Fran├žois Magimel <magimel.francois@gmail.com>
# Contributor: Austin <doorknob60 at gmail dot com>

_gitname=fofix
pkgname=fofix-git
pkgver=v4.0.0alpha2.r324.g0f69173
epoch=1
pkgrel=2
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
}

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
}