diff options
author | András Wacha | 2019-07-22 10:18:22 +0200 |
---|---|---|
committer | András Wacha | 2019-07-22 11:36:37 +0200 |
commit | 8a19c108884720d20a179bf019f001b88c657da1 (patch) | |
tree | d120f70494a805f32a3fcfbf36b3c2f029456900 /PKGBUILD | |
download | aur-8a19c108884720d20a179bf019f001b88c657da1.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1e4dba208756 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,55 @@ +# Maintainer: András Wacha <awacha@gmail.com> +pkgname=python-bumps +_name=${pkgname#python-} +pkgver=0.7.11 +pkgrel=1 +pkgdesc="Data fitting with uncertainty analysis" +arch=(any) +url="https://github.com/bumps/bumps" +license=('custom') +makedepends=( python-setuptools + python-sphinx + python-nose + python-docutils + python-pygments + 'python-jinja>=2' +) +depends=( python-numpy + python-scipy + python-matplotlib + python-wxpython + python-pyparsing + python-periodictable + python-scikit-learn +) +source=("https://github.com/${_name}/${_name}/archive/v${pkgver}.tar.gz" + "bumps.patch") +sha256sums=('f0c368d7beb4307297fb5298658921941a80c21e7bc52fb5dab1a1d1ef16d250' + 'SKIP') + +prepare() { + cd ${_name}-${pkgver} + patch -p1 <../bumps.patch +} + +build() { + cd ${_name}-${pkgver} + python setup.py build + (cd bumps/dream && cc compiled.c -I ../../Random123/include/ -O2 -fopenmp -shared -lm -o _compiled.so -fPIC ) + (cd doc && make html) + (cd doc && make pdf) +} + +check() { + cd ${_name}-${pkgver} +# python test.py +} + +package() { + cd ${_name}-${pkgver} + python setup.py install --root="$pkgdir/" --optimize=1 --skip-build + mkdir -p ${pkgdir}/usr/share/licenses/python-bumps + cp ${srcdir}/${_name}-${pkgver}/LICENSE.txt ${pkgdir}/usr/share/licenses/python-bumps/license.txt + mkdir -p ${pkgdir}/usr/share/doc/python-bumps + cp ${srcdir}/${_name}-${pkgver}/doc/_build/html ${pkgdir}/usr/share/doc/python-bumps -R +} |