diff options
author | xantares | 2015-09-17 08:03:59 +0200 |
---|---|---|
committer | xantares | 2015-09-17 08:03:59 +0200 |
commit | 6e32faef4cb3c8ee3ff32ffc067b45b0a1c58c03 (patch) | |
tree | da3257a7570608ff02ec69ff9538258171e6b892 /PKGBUILD | |
download | aur-6e32faef4cb3c8ee3ff32ffc067b45b0a1c58c03.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f6ed429586df --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,52 @@ +pkgbase=cgal-swig-bindings +pkgname=('python-cgal' 'java-cgal') +pkgver=r480.4122805 +pkgrel=1 +pkgdesc='CGAL bindings using SWIG ' +arch=('i686' 'x86_64') +license=('custom: Boost') +url="https://github.com/xantares/nfc-bindings" +makedepends=('cmake' 'swig' 'eigen') +source=("git+https://github.com/CGAL/cgal-swig-bindings.git") +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/cgal-swig-bindings" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() +{ + cd "$srcdir"/cgal-swig-bindings + mkdir -p build && pushd build + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr .. + make +# cd "$srcdir"/nfc-bindings-py2 +# mkdir -p build && pushd build +# cmake \ +# -DPYTHON_EXECUTABLE=/usr/bin/python2 -DPYTHON_INCLUDE_DIR=/usr/include/python2.7 -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so \ +# -DCMAKE_INSTALL_PREFIX=/usr .. +} + +package_python-cgal() +{ + depends=('python' 'cgal') + + cd "$srcdir"/cgal-swig-bindings/build + python_dir=`python -c "from distutils import sysconfig; print(sysconfig.get_python_lib())"` + install -d "$pkgdir"/${python_dir} + cp -r build-python/CGAL "$pkgdir"/${python_dir} + rm "$pkgdir"/${python_dir}/CGAL/CGAL_*PYTHON_wrap.cxx +# make DESTDIR="$pkgdir" install +} + +package_java-cgal() +{ + depends=('java-runtime' 'cgal') + + cd "$srcdir"/cgal-swig-bindings/build + install -d "$pkgdir"/usr/share/java/ + cp -r build-java/CGAL "$pkgdir"/usr/share/java +# make DESTDIR="$pkgdir" install +}
\ No newline at end of file |