summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Aznarán Laos2021-09-09 16:01:27 -0500
committerCarlos Aznarán Laos2021-09-09 16:01:27 -0500
commit65060dfe381acd9509048d3638686d86ce92e9c7 (patch)
tree6a3bfe0bc289eeca96ed8c072762aa382c629d8c
downloadaur-65060dfe381acd9509048d3638686d86ce92e9c7.tar.gz
Initial commit
-rw-r--r--.SRCINFO18
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD37
3 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4135ef1078e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = python-meshpy
+ pkgdesc = 2D/3D simplicial mesh generator interface for Python (Triangle, TetGen, gmsh)
+ pkgver = 2020.1
+ pkgrel = 1
+ url = https://documen.tician.de/meshpy
+ arch = x86_64
+ license = MIT
+ checkdepends = python-pytest
+ checkdepends = python-matplotlib
+ makedepends = python-setuptools
+ makedepends = git
+ depends = pybind11
+ depends = python-gmsh_interop
+ source = git+https://github.com/inducer/meshpy.git?signed#tag=v2020.1
+ validpgpkeys = 900A958D9A0ACA58B1468F2471AA298BCA171145
+ sha512sums = SKIP
+
+pkgname = python-meshpy
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..f6074a5513c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Carlos Aznarán <caznaranl@uni.pe>
+_base=meshpy
+pkgname=python-${_base}
+pkgdesc="2D/3D simplicial mesh generator interface for Python (Triangle, TetGen, gmsh)"
+pkgver=2020.1
+pkgrel=1
+arch=('x86_64')
+url="https://documen.tician.de/${_base}"
+license=(MIT)
+depends=(pybind11 python-gmsh_interop) # boost
+makedepends=(python-setuptools git) # ctags
+checkdepends=(python-pytest python-matplotlib)
+source=("git+https://github.com/inducer/${_base}.git?signed#tag=v${pkgver}")
+validpgpkeys=("900A958D9A0ACA58B1468F2471AA298BCA171145") # Andreas Kloeckner
+sha512sums=('SKIP')
+
+export PYTHONPYCACHEPREFIX="${BUILDDIR}/${pkgname}/.cache/cpython/"
+
+build() {
+ cd "${_base}"
+ python3 ./configure.py --python-exe=python3
+ make
+}
+
+check() {
+ cd "${_base}"
+ python setup.py install --root="${PWD}/tmp_install" --optimize=1 --skip-build
+ local _pyversion=$(python -c "import sys; print(sys.version[:3])")
+ PYTHONPATH="${PWD}/build/lib.linux-${CARCH}-${_pyversion}:${PYTHONPATH}" python test/test_meshpy.py
+}
+
+package() {
+ cd "${_base}"
+ export PYTHONHASHSEED=0
+ python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}