diff options
author | morguldir | 2020-04-17 16:42:45 +0200 |
---|---|---|
committer | morguldir | 2020-04-17 16:42:45 +0200 |
commit | 1093c06f0273097c131c9019b0f005821126792c (patch) | |
tree | 56db9484e108885ed1a5d460a2007d772d459362 /PKGBUILD | |
parent | 9f9b24bc8f71676eb2fec29b8b2bdfdc2b314a46 (diff) | |
download | aur-1093c06f0273097c131c9019b0f005821126792c.tar.gz |
Use source array, and set the version to 3.20.17
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 37 |
1 files changed, 12 insertions, 25 deletions
@@ -1,33 +1,20 @@ -_pkgname="python-pytmx" -pkgname="${_pkgname}" -pkgver="master" +# Maintainer: morguldir <morguldir@protonmail.com> +_gitname=PyTMX +pkgname=python-pytmx +pkgver=3.20.17 pkgrel=1 pkgdesc="Python library to read Tiled Map Editor's TMX maps" arch=('i686' 'x86_64') -url="https://github.com/bitcraft/PyTMX" -license=('LGPL v3') -depends=('python>=3.1' 'python-six') +url="https://github.com/bitcraft/$_gitname" +license=('LGPL') +depends=('python>=3.3' 'python-six') makedepends=('git') -provides=("${_pkgname}") -conflicts=("${_pkgname}") -_gitroot="https://github.com/bitcraft/PyTMX.git" -_gitname=("${_pkgname}") - -build() { - cd "${srcdir}" - msg "Connecting to GIT server...." - - if [ -d ${_gitname} ] ; then - cd ${_gitname} && git pull origin - msg "The local files are updated." - else - git clone ${_gitroot} ${_gitname} - fi - - msg "GIT checkout done or server timeout" -} +provides=($pkgname) +conflicts=($pkgname) +source=("git+https://github.com/bitcraft/$_gitname.git#commit=1896511afff65b5a5eb18295976ec44b68a9bb5a") +sha256sums=('SKIP') package(){ - cd ${_gitname} + cd $_gitname python setup.py install --root="$pkgdir" --prefix=/usr } |