diff options
author | Carlos Aznarán Laos | 2022-02-23 17:11:20 -0500 |
---|---|---|
committer | Carlos Aznarán Laos | 2022-02-23 17:11:20 -0500 |
commit | 44537d1cec2619230bbaa1880116939341face16 (patch) | |
tree | 9dd6df2e7b667fdd32c4f7a3eef5e6542b23b64b /PKGBUILD | |
download | aur-44537d1cec2619230bbaa1880116939341face16.tar.gz |
Initial commit as memory from the preCICE workshop 2022
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f03fa9f0b699 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Carlos Aznarán <caznaranl@uni.pe> +_base=fenicsprecice +pkgname=python-${_base} +pkgdesc="FEniCS-preCICE adapter is a preCICE adapter for the open source computing platform FEniCS" +pkgver=1.3.0 +pkgrel=1 +arch=(any) +url="https://github.com/precice/${_base/precice/-adapter}" +license=(LGPL3) +depends=(python-pyprecice python-dolfin python-scipy) +makedepends=(python-setuptools) +source=(${url}/archive/v${pkgver}.tar.gz) +sha512sums=('d4040c455da6fd08291b7b07da25147c6ad36fc88b76b171c3b40ca4ae8f485736ce78b9d34f369017c024063dc3cbbbb50019bc2bfb9b2bec6623c3bbe87599') + +build() { + if [ -z "$(ldconfig -p | grep libcuda.so.1)" ]; then + export OMPI_MCA_opal_warn_on_missing_libcuda=0 + fi + cd ${_base/precice/-adapter}-${pkgver} + export PYTHONHASHSEED=0 + python setup.py build +} + +check() { + cd ${_base/precice/-adapter}-${pkgver} + python setup.py test -s tests.unit + python setup.py test -s tests.integration +} + +package() { + cd ${_base/precice/-adapter}-${pkgver} + PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build + install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" +} |