summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorcarl.george2015-10-01 16:48:34 -0500
committercarl.george2015-10-01 16:48:34 -0500
commitfd190bbca09a73693574806fc0201fbdadae414e (patch)
tree746869cc380f99bbbb05c8f7bb8e12b56b365ec7
parent4d849b5d0f7363175917eef93c81ccfa5a406804 (diff)
downloadaur-fd190bbca09a73693574806fc0201fbdadae414e.tar.gz
0.3-3
* rebuild for Python 3.5 * build in separate directories
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD19
2 files changed, 16 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 1440c3c61e2..c1f865b31f5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = python-pluginbase
pkgdesc = A support library for building plugins sytems in Python.
pkgver = 0.3
- pkgrel = 2
+ pkgrel = 3
url = http://pluginbase.pocoo.org/
arch = any
license = BSD
diff --git a/PKGBUILD b/PKGBUILD
index 101e399b1ec..a850215aec7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@ _module="${_name}"
pkgname=("python-${_module}" "python2-${_module}")
pkgver="0.3"
-pkgrel="2"
+pkgrel="3"
pkgdesc="A support library for building plugins sytems in Python."
arch=("any")
url="http://pluginbase.pocoo.org/"
@@ -14,14 +14,25 @@ makedepends=("python-setuptools" "python2-setuptools")
source=("https://pypi.python.org/packages/source/${_name:0:1}/${_name}/${_name}-${pkgver}.tar.gz")
sha256sums=('d9486a2d50017551c3f0e474648b71ea2e39429720977119a437713ebae2257f')
+prepare() {
+ cp -a "${srcdir}/${_name}-${pkgver}" "${srcdir}/${_name}-${pkgver}-python2"
+}
+
+build() {
+ cd "${srcdir}/${_name}-${pkgver}"
+ python setup.py build
+ cd "${srcdir}/${_name}-${pkgver}-python2"
+ python2 setup.py build
+}
+
package_python-pluginbase() {
depends=("python")
cd "${srcdir}/${_name}-${pkgver}"
- python setup.py install --root="${pkgdir}" --optimize=1
+ python setup.py install --skip-build --root="${pkgdir}" --optimize=1
}
package_python2-pluginbase() {
depends=("python2")
- cd "${srcdir}/${_name}-${pkgver}"
- python2 setup.py install --root="${pkgdir}" --optimize=1
+ cd "${srcdir}/${_name}-${pkgver}-python2"
+ python2 setup.py install --skip-build --root="${pkgdir}" --optimize=1
}