summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD13
1 files changed, 7 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index d3be2e244c9..3f8858bc874 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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
}