updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / cgal-python / PKGBUILD
blob96750024703003828ef4f046cf473ff53085dd5b
1 # Contributor: Dmitriy Morozov <archlinux@foxcub.org> 
2 pkgname=cgal-python
3 pkgver=0.9.4
4 _pkgver=0.9.4-beta1
5 pkgrel=1 
6 pkgdesc="Python bindings for CGAL."
7 url="http://cgal-python.gforge.inria.fr/"
8 arch=('i686' 'x86_64')
9 license="GPL" 
10 depends=('python' 'cgal') 
11 source=(https://gforge.inria.fr/frs/download.php/19498/$pkgname-$_pkgver.tar.gz)
12 md5sums=('6e5199dda2a791717b8184d5628f1dcc')
14 build() { 
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"
20  make package
21  mkdir -p $startdir/pkg/$PYTHON_LIB/CGAL
22  install -m644 $startdir/src/$pkgname-$_pkgver/cgal_package/CGAL/* $startdir/pkg/$PYTHON_LIB/CGAL