diff options
author | Alexander Kobel | 2019-03-21 10:43:32 +0100 |
---|---|---|
committer | Alexander Kobel | 2019-03-21 10:43:32 +0100 |
commit | b94a09f18279ebcce6a4a7ce6bcebfb849bfde61 (patch) | |
tree | 2a33d06e6ca99a418ce8335fc64b81ccc20a5026 /PKGBUILD | |
download | aur-bertini_real-git.tar.gz |
bertini_real (initial git version)
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..93c2f3538d03 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Alexander Kobel <a-kobel@a-kobel.de> + +pkgname=bertini_real-git +pkgver=r1075.3dbac52 +pkgrel=1 +pkgdesc="Numerical decomposition of real algebraic sets, based on the Bertini homotopy continuation solver" +url="http://www.bertinireal.com/" +arch=('x86_64') +license=('custom: Bertini license') +depends=('bertini' 'boost' 'gmp' 'mpfr' 'openmpi') +optdepends=('python: Python interface' + 'python-sympy: Python interface' + 'python-scipy: Python interface' + 'python-numpy: Python interface' + 'python-algopy: Python interface' + 'python-mpmath: Python interface' + 'python-dill: Python interface' + 'python-matplotlib: Python interface') +provides=('bertini_real') +source=("git://github.com/ofloveandhate/bertini_real") +md5sums=('SKIP') + +pkgver () { + cd bertini_real + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build () { + cd ${srcdir}/bertini_real + libtoolize + autoreconf -i + CPPFLAGS="$CPPFLAGS -I/usr/include/bertini" + ./configure --prefix=/usr CPPFLAGS="$CPPFLAGS" --includedir=/usr/include/bertini_real + make +} + +package() { + cd ${srcdir}/bertini_real + install -D -m644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE + make DESTDIR="${pkgdir}" install + + if python --version; then + PYV=$(python -c 'from sys import version_info; print (str (version_info[0]) + "." + str (version_info[1]))') + install -d "${pkgdir}/usr/lib/python${PYV}/site-packages" + cp -r python/bertini_real "${pkgdir}/usr/lib/python${PYV}/site-packages/" + fi +} |