diff options
author | Thomas Weißschuh | 2015-09-21 14:07:16 +0000 |
---|---|---|
committer | Thomas Weißschuh | 2015-09-21 14:07:16 +0000 |
commit | 6c5821595ed8948f947c9a313da1ce1a4adde9a3 (patch) | |
tree | 8a51ae7f884155f20780e2917b5357e2b59e901e /PKGBUILD | |
parent | 3b62085dd3ae035242461a8a37f9a18efdc6b663 (diff) | |
download | aur-6c5821595ed8948f947c9a313da1ce1a4adde9a3.tar.gz |
upgpkg: python-ggplot 0.6.8-1
upstream release
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 38 |
1 files changed, 29 insertions, 9 deletions
@@ -1,24 +1,44 @@ -# Maintainer: Thomas Weißschuh <thomas t-8ch.de> +# Maintainer: Thomas Weißschuh <thomas t-8ch de> -pkgname=python-ggplot -pkgver=0.6.5 +pkgbase=python-ggplot +pkgname=(python-ggplot python2-ggplot) +pkgver=0.6.8 pkgrel=1 -pkgdesc="ggplot for python" +pkgdesc='ggplot for python' arch=('any') -url="https://github.com/yhat/ggplot/" +url='https://github.com/yhat/ggplot/' license=('BSD') -depends=('python-matplotlib' 'python-statsmodels' 'python-brewer2mpl') +makedepends=('python-setuptools' 'python2-setuptools') source=("http://pypi.python.org/packages/source/g/ggplot/ggplot-${pkgver}.tar.gz") -build() { +prepare() { cd "$srcdir/ggplot-$pkgver" python setup.py build + + cd "$srcdir" + cp -a ggplot-$pkgver{,-py2} + find ggplot-$pkgver-py2 -name \*.py -exec sed -r 's|^#!(.*)python$|#!\1python2|' -i {} + } -package() { +build() { + cd "$srcdir"/ggplot-$pkgver + python setup.py build + + cd "$srcdir"/ggplot-$pkgver-py2 + python2 setup.py build +} + +package_python-ggplot() { + depends=('python-matplotlib' 'python-statsmodels' 'python-brewer2mpl') cd "$srcdir/ggplot-$pkgver" python setup.py install --root="$pkgdir" --optimize=1 } -sha256sums=('7922152c5986b12da4f663ac6905b6b8ce51a66b9cabf2671a2be3906784ee41') +package_python2-ggplot() { + depends=('python-matplotlib' 'python-statsmodels' 'python-brewer2mpl') + cd "$srcdir/ggplot-$pkgver-py2" + python2 setup.py install --root="$pkgdir" --optimize=1 +} + +sha256sums=('6043767ac3e7ba1deb98042561485e34ace8439098432c01c0bb83b49bdfa809') |