summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMaximilian Stahlberg2021-05-24 13:04:58 +0200
committerMaximilian Stahlberg2021-05-24 13:04:58 +0200
commit51a697fefa545ea3d076edb3c4286f46a94459d8 (patch)
treeabe29e1bbd1d976d2f548b666ff82e0d40d10650 /PKGBUILD
parentfb77a64cf938693fe956465d9e77c7bbe99f07c0 (diff)
downloadaur-51a697fefa545ea3d076edb3c4286f46a94459d8.tar.gz
Perform minor cleanup.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD20
1 files changed, 9 insertions, 11 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 4d7f27717763..4898cf7e17b0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,27 +1,25 @@
# Maintainer: Maximilian Stahlberg <maximilian.stahlberg tu-berlin de>
# Contributor: Feufochmar <feufochmar dot gd at gmail dot com>
-_name='libtcod'
-
pkgname=python-libtcod
pkgver=1.15.1
-pkgrel=2
-pkgdesc='Python Roguelike graphics/utility library.'
+pkgrel=3
+pkgdesc='Python Roguelike graphics/utility library. Old, unmaintained version.'
arch=('any')
url='https://github.com/libtcod/libtcod'
license=('BSD')
depends=('python' 'libtcod')
makedepends=('python-setuptools')
-source=("https://github.com/${_name}/${_name}/archive/${pkgver}.tar.gz")
+source=("https://github.com/libtcod/libtcod/archive/${pkgver}.tar.gz")
+md5sums=('909fdab63c4467dd7e73ba2056d8f6e1')
package() {
- cd "${srcdir}/${_name}-${pkgver}/python"
- python setup.py install --root=${pkgdir}
+ _pymajver="$(python -V | awk '{print $2}' | awk -F. '{print $1"."$2}')"
+
+ cd "${srcdir}/libtcod-${pkgver}/python"
+ python setup.py install --root=${pkgdir} --optimize=1
# Link libtcod.so so the Python library finds it.
- pythonver="$(python -V)"
- cd "${pkgdir}/usr/lib/python${pythonver:7:3}/site-packages/${_name}py"
+ cd "${pkgdir}/usr/lib/python${_pymajver}/site-packages/libtcodpy"
ln -s ../../../libtcod.so .
}
-
-md5sums=('909fdab63c4467dd7e73ba2056d8f6e1')