summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ead91d9ebb92b034809824442aeb5c43e80e971a (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
# Maintainer: Sebastian Gumprich <sebastian.gumprich@38.de>
pkgname=tuxemon-git
pkgver=r815.5953934
pkgrel=1
pkgdesc="A free, open source monster-fighting RPG."
arch=('i686' 'x86_64')
url="http://www.tuxemon.org"
license=('GPL3')
groups=('games')
depends=('python' 'python-pygame' 'python-pytmx' 'python-six' 'python-neteria' 'python-pyscroll')
makedepends=('git')
optdepends=('libShake: rumble library for Linux.')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git://github.com/Tuxemon/Tuxemon.git#branch=development')
md5sums=('SKIP')

_gitname=Tuxemon

pkgver() {
  cd "${srcdir}/${_gitname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    install -d ${pkgdir}/usr/share/
    install -d ${pkgdir}/usr/bin/
    mv ${srcdir}/${_gitname}/tuxemon/ ${pkgdir}/usr/share/tuxemon
    ln -s "/usr/share/tuxemon/tuxemon.py" "${pkgdir}/usr/bin/tuxemon"
}