summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormorguldir2020-04-17 16:42:45 +0200
committermorguldir2020-04-17 16:42:45 +0200
commit1093c06f0273097c131c9019b0f005821126792c (patch)
tree56db9484e108885ed1a5d460a2007d772d459362
parent9f9b24bc8f71676eb2fec29b8b2bdfdc2b314a46 (diff)
downloadaur-1093c06f0273097c131c9019b0f005821126792c.tar.gz
Use source array, and set the version to 3.20.17
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD37
2 files changed, 17 insertions, 28 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6433b54e186..d313c3af593 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,18 @@
pkgbase = python-pytmx
pkgdesc = Python library to read Tiled Map Editor's TMX maps
- pkgver = master
+ pkgver = 3.20.17
pkgrel = 1
url = https://github.com/bitcraft/PyTMX
arch = i686
arch = x86_64
- license = LGPL v3
+ license = LGPL
makedepends = git
- depends = python>=3.1
+ depends = python>=3.3
depends = python-six
provides = python-pytmx
conflicts = python-pytmx
+ source = git+https://github.com/bitcraft/PyTMX.git#commit=1896511afff65b5a5eb18295976ec44b68a9bb5a
+ sha256sums = SKIP
pkgname = python-pytmx
diff --git a/PKGBUILD b/PKGBUILD
index 4779983f16e..ebf18ebfb4e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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
}