summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD13
2 files changed, 12 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 172faa177f7..7aa6303c9a2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,8 @@
+# Generated by mksrcinfo v8
+# Sat Jul 30 17:18:20 UTC 2016
pkgbase = python2-polygon
pkgdesc = Python package that handles polygonal shapes in 2D
- pkgver = 2.0.7
+ pkgver = 2.0.8
pkgrel = 1
url = http://www.j-raedler.de/projects/polygon/
arch = i686
@@ -9,8 +11,8 @@ pkgbase = python2-polygon
makedepends = unzip
depends = python2-numpy
options = !libtool
- source = https://bitbucket.org/jraedler/polygon2/downloads/Polygon2-2.0.7.zip
- md5sums = a6fa2806d75aa6e7da87f9b1b2332ecd
+ source = https://bitbucket.org/jraedler/polygon2/get/2.0.8.tar.bz2
+ md5sums = aa38365caea6df849c923ef703f1fafc
pkgname = python2-polygon
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
}