summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 32aa761705358f572c382f42e929564d46dc1a09 (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
# Maintainer: Salamandar <felix@piedallu.me>
# Contributor: mdsitton <matthewsitton@gmail.com>
pkgname='python2-fretwork-git'
_gitname='fretwork'
pkgver=0.5.0.r33.ea43bf0
pkgrel=1
pkgdesc=" Shared code for FoFiX and FoF:R"
arch=('any')
url="https://github.com/fofix/$_gitname.git"
license=('GPL')
groups=('games')
makedepends=('git' 'cython2' 'sdl_mixer' 'python2-setuptools')
depends=('python2' 'sdl_mixer' 'soundtouch')
source=("git+$url")
sha256sums=('SKIP')

pkgver() {
    cd "$srcdir/$_gitname"
    printf "%s.%s" "$( set -o pipefail
        git describe --long --tags 2>/dev/null \
            | sed 's/\([^-]*-g\)/r\1/;s/-/./g' \
            | sed -r 's/.([0-9,a-g,A-G]{7}.*)//' ||
        printf "r%s" "$(git rev-list --count HEAD)"
    )" "$(git rev-parse --short HEAD)"
}


package() {
    cd "$srcdir/$_gitname"
    python2 setup.py install --root="$pkgdir"

}