summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorijan Hamzic2015-06-16 11:53:15 +0200
committerFlorijan Hamzic2015-06-16 11:53:15 +0200
commit9f9b24bc8f71676eb2fec29b8b2bdfdc2b314a46 (patch)
tree40fa57d7155192ad39247ceb3011366f027885b5
downloadaur-9f9b24bc8f71676eb2fec29b8b2bdfdc2b314a46.tar.gz
Initial commit
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD33
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6433b54e186
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = python-pytmx
+ pkgdesc = Python library to read Tiled Map Editor's TMX maps
+ pkgver = master
+ pkgrel = 1
+ url = https://github.com/bitcraft/PyTMX
+ arch = i686
+ arch = x86_64
+ license = LGPL v3
+ makedepends = git
+ depends = python>=3.1
+ depends = python-six
+ provides = python-pytmx
+ conflicts = python-pytmx
+
+pkgname = python-pytmx
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4779983f16e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+_pkgname="python-pytmx"
+pkgname="${_pkgname}"
+pkgver="master"
+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')
+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"
+}
+
+package(){
+ cd ${_gitname}
+ python setup.py install --root="$pkgdir" --prefix=/usr
+}