summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d3be2e244c9785e74a9ef922c2fd08caedc1c63f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#Maintainer: Andrzej Giniewicz <gginiu@gmail.com>

pkgname=python2-polygon
pkgver=2.0.7
pkgrel=1
pkgdesc="Python package that handles polygonal shapes in 2D"
arch=('i686' 'x86_64')
url="http://www.j-raedler.de/projects/polygon/"
depends=('python2-numpy')
makedepends=('unzip')
license=('LGPL')
options=(!libtool)
source=(https://bitbucket.org/jraedler/polygon2/downloads/Polygon2-${pkgver}.zip)
md5sums=('a6fa2806d75aa6e7da87f9b1b2332ecd')

build() {
    cd "$srcdir"/Polygon2-$pkgver
    export CFLAGS+=" -I/`python2 -c 'from distutils.sysconfig import get_python_lib; \
	    print get_python_lib()'`/numpy/core/include/"
    export PYTHON="`which python2`"
    python2 setup.py build
}

package() {
    cd "$srcdir"/Polygon2-$pkgver
    python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
}