1 # Contributor: Dmitriy Morozov <archlinux@foxcub.org>
6 pkgdesc="Python bindings for CGAL."
7 url="http://cgal-python.gforge.inria.fr/"
10 depends=('python' 'cgal')
11 source=(https://gforge.inria.fr/frs/download.php/19498/$pkgname-$_pkgver.tar.gz)
12 md5sums=('6e5199dda2a791717b8184d5628f1dcc')
15 PYTHON_INC=`python -c "from distutils import sysconfig; print sysconfig.get_python_inc()"`
16 PYTHON_LIB=`python -c "from distutils import sysconfig; print sysconfig.get_python_lib()"`
18 cd $startdir/src/$pkgname-$_pkgver
19 make CGAL_CXXFLAGS="-I /opt/cgal/include -I $PYTHON_INC"
21 mkdir -p $startdir/pkg/$PYTHON_LIB/CGAL
22 install -m644 $startdir/src/$pkgname-$_pkgver/cgal_package/CGAL/* $startdir/pkg/$PYTHON_LIB/CGAL