summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD11
2 files changed, 9 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7ddd72b1aa1..6868adf5a47 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = python-mpld3
pkgdesc = D3 Viewer for Matplotlib
pkgver = 0.3
- pkgrel = 1
+ pkgrel = 2
url = http://mpld3.github.io/
arch = any
license = BSD 3-clause
diff --git a/PKGBUILD b/PKGBUILD
index eae2accbe80..c5063631fe5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=('python-mpld3' 'python2-mpld3')
pkgver=0.3
-pkgrel=1
+pkgrel=2
pkgdesc='D3 Viewer for Matplotlib'
arch=('any')
url='http://mpld3.github.io/'
@@ -12,17 +12,22 @@ pypiname='mpld3'
source=("https://files.pythonhosted.org/packages/source/${pypiname:0:1}/${pypiname}/${pypiname}-${pkgver}.tar.gz")
md5sums=('088251ed3182b2932268f9986cdc2778')
+prepare() {
+ cd "$srcdir/"
+ cp -a "mpld3-${pkgver}" "mpld3-${pkgver}-py2"
+}
+
package_python-mpld3() {
depends=('python' 'python-matplotlib' 'python-jinja')
- cd "$srcdir/mpld3-$pkgver"
+ cd "$srcdir/mpld3-${pkgver}"
python setup.py install --root="$pkgdir/" --optimize=1
}
package_python2-mpld3() {
depends=('python2' 'python2-matplotlib' 'python2-jinja')
- cd "$srcdir/mpld3-$pkgver"
+ cd "$srcdir/mpld3-${pkgver}-py2"
python2 setup.py install --root="$pkgdir/" --optimize=1
}