summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorS├ębastien Leduc2015-09-20 10:15:50 +0200
committerS├ębastien Leduc2015-09-20 10:15:50 +0200
commitef01f70de39b43592a37e4505e4ccbbf2d44e759 (patch)
treedd2b4e017c2868fd68effc5106c7dc44c681b398
downloadaur-ef01f70de39b43592a37e4505e4ccbbf2d44e759.tar.gz
First commit: python-redmine 1.2.0
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD31
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..462cb535662
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = python-redmine
+ pkgdesc = Python library for communicating with a Redmine project management application
+ pkgver = 1.2.0
+ pkgrel = 1
+ url = http://python-redmine.readthedocs.org/
+ arch = any
+ license = Apache
+ makedepends = python
+ makedepends = python2
+ options = !emptydirs
+ source = https://pypi.python.org/packages/source/p/python-redmine/python-redmine-1.2.0.tar.gz
+ md5sums = ca13072692dc5068bd17d47ca83621b9
+
+pkgname = python-redmine
+ depends = python
+ depends = python-requests
+
+pkgname = python2-redmine
+ depends = python2
+ depends = python2-requests
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..800efb7ee47
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Sebastien Leduc <sebastien@sleduc.fr>
+pkgname=('python-redmine' 'python2-redmine')
+pkgbase='python-redmine'
+pkgver=1.2.0
+pkgrel=1
+pkgdesc="Python library for communicating with a Redmine project management application"
+arch=("any")
+url="http://python-redmine.readthedocs.org/"
+license=('Apache')
+makedepends=('python' 'python2')
+options=(!emptydirs)
+source=("https://pypi.python.org/packages/source/p/${pkgbase}/${pkgbase}-${pkgver}.tar.gz")
+md5sums=('ca13072692dc5068bd17d47ca83621b9')
+
+prepare() {
+ cp -a "${srcdir}/${pkgbase}-${pkgver}"{,-python2}
+}
+
+package_python-redmine() {
+ depends=('python' 'python-requests')
+ cd "$srcdir/$pkgbase-$pkgver"
+ python setup.py install --root="$pkgdir/" --optimize=1
+}
+
+package_python2-redmine() {
+ depends=('python2' 'python2-requests')
+ cd "$srcdir/$pkgbase-$pkgver-python2"
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et: