summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD27
1 files changed, 13 insertions, 14 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ead91d9ebb9..aebf0f218d5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,30 +1,29 @@
-# Maintainer: Sebastian Gumprich <sebastian.gumprich@38.de>
+# Maintainer: morguldir <morguldir@protonmail.com>
+# Contributor: Sebastian Gumprich <sebastian.gumprich@38.de>
pkgname=tuxemon-git
-pkgver=r815.5953934
+pkgver=r1668.6908fd34
pkgrel=1
pkgdesc="A free, open source monster-fighting RPG."
-arch=('i686' 'x86_64')
+arch=('any')
url="http://www.tuxemon.org"
license=('GPL3')
groups=('games')
-depends=('python' 'python-pygame' 'python-pytmx' 'python-six' 'python-neteria' 'python-pyscroll')
+depends=('python' 'python-cbor' 'python-pytmx' 'python-neteria' 'python-pyscroll' 'python-babel' 'python-lxml' 'python-natsort' 'python-pillow')
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
+source=('tuxemon-git::git+https://github.com/Tuxemon/Tuxemon.git#branch=development')
+sha256sums=('SKIP')
pkgver() {
- cd "${srcdir}/${_gitname}"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ cd $pkgname
+ 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"
+ cd $pkgname
+ local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+ python setup.py install --root="${pkgdir}" --prefix=/usr --optimize=1
+ cp -r mods "${pkgdir}/$site_packages"
}