summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Aznarán Laos2022-02-23 17:11:20 -0500
committerCarlos Aznarán Laos2022-02-23 17:11:20 -0500
commit44537d1cec2619230bbaa1880116939341face16 (patch)
tree9dd6df2e7b667fdd32c4f7a3eef5e6542b23b64b
downloadaur-44537d1cec2619230bbaa1880116939341face16.tar.gz
Initial commit as memory from the preCICE workshop 2022
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD34
3 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..80b4c093734
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = python-fenicsprecice
+ pkgdesc = FEniCS-preCICE adapter is a preCICE adapter for the open source computing platform FEniCS
+ pkgver = 1.3.0
+ pkgrel = 1
+ url = https://github.com/precice/fenics-adapter
+ arch = any
+ license = LGPL3
+ makedepends = python-setuptools
+ depends = python-pyprecice
+ depends = python-dolfin
+ depends = python-scipy
+ source = https://github.com/precice/fenics-adapter/archive/v1.3.0.tar.gz
+ sha512sums = d4040c455da6fd08291b7b07da25147c6ad36fc88b76b171c3b40ca4ae8f485736ce78b9d34f369017c024063dc3cbbbb50019bc2bfb9b2bec6623c3bbe87599
+
+pkgname = python-fenicsprecice
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..f59ec20aabf
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+* \ No newline at end of file
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f03fa9f0b69
--- /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}"
+}