diff options
author | Andrzej Giniewicz | 2016-07-30 19:18:34 +0200 |
---|---|---|
committer | Andrzej Giniewicz | 2016-07-30 19:18:34 +0200 |
commit | 971deb648c1f12d07b8d6c0ea9f53021331626f7 (patch) | |
tree | 875ee14d17775bb0608b8af38ff56b170ecc0405 /PKGBUILD | |
parent | dc283a0f5dea97f4de73eea482e50eb05cd06014 (diff) | |
download | aur-python2-polygon.tar.gz |
python2-polygon: new upstream release
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -1,7 +1,8 @@ #Maintainer: Andrzej Giniewicz <gginiu@gmail.com> pkgname=python2-polygon -pkgver=2.0.7 +pkgver=2.0.8 +_tag=9917e23dc99a pkgrel=1 pkgdesc="Python package that handles polygonal shapes in 2D" arch=('i686' 'x86_64') @@ -10,19 +11,19 @@ depends=('python2-numpy') makedepends=('unzip') license=('LGPL') options=(!libtool) -source=(https://bitbucket.org/jraedler/polygon2/downloads/Polygon2-${pkgver}.zip) -md5sums=('a6fa2806d75aa6e7da87f9b1b2332ecd') +source=("https://bitbucket.org/jraedler/polygon2/get/${pkgver}.tar.bz2") +md5sums=('aa38365caea6df849c923ef703f1fafc') build() { - cd "$srcdir"/Polygon2-$pkgver + cd "$srcdir"/jraedler-polygon2-${_tag} export CFLAGS+=" -I/`python2 -c 'from distutils.sysconfig import get_python_lib; \ - print get_python_lib()'`/numpy/core/include/" + print get_python_lib()'`/numpy/core/include/" export PYTHON="`which python2`" python2 setup.py build } package() { - cd "$srcdir"/Polygon2-$pkgver + cd "$srcdir"/jraedler-polygon2-${_tag} python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 } |