summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9431dd9a7673f445953f5e25ad96826566ab4b24 (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
# Maintainer: Fran├žois Magimel <magimel.francois at gmail dot com>
# Contributor: doorknob60 <doorknob60 at gmail dot com>

pkgname=fofix
pkgver=3.123
pkgrel=2
pkgdesc="Frets on Fire X (FoFiX). Highly improved version of Frets on Fire"
url="https://fofix.org"
arch=(any)
license=('GPL')
install=${pkgname}.install
groups=('games')
depends=(
  'python2'
  'python2-pygame'
  'python2-opengl'
  'python2-numpy'
  'python2-pillow'
  'python2-pysqlite'
  'libffi'
)
replaces=('fofix')
source=(
  "${pkgname}-${pkgver}.tar.gz::https://github.com/fofix/fofix/archive/v${pkgver}.tar.gz"
  "fofix.desktop"
  "fofix.png"
)
md5sums=('3cab3338eb2a6b0aa6df148b41acd0db'
         '816b52ec85a60e005e9ff2ee428770c2'
         'f886a7fdfa7592b50aa9f62901910e03')

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.desktop ${pkgdir}/usr/share/applications/
    cp fofix.png ${pkgdir}/usr/share/pixmaps/
    mv ${srcdir}/${pkgname}-${pkgver} $pkgdir/opt/fofix
    cd $pkgdir/usr/bin/
    echo "#!/bin/sh" > fofix
    echo "cd /opt/fofix/src/" >> fofix
    echo "python2 ./FoFiX.py" >> fofix
    chmod +x fofix
    chmod -R 777 $pkgdir/opt/fofix
}