diff options
author | Renato Caldas | 2023-08-23 12:17:56 +0100 |
---|---|---|
committer | Renato Caldas | 2023-08-23 12:17:56 +0100 |
commit | 3caf2d2cc44c29a3b41dd77563e6c0a1bbbe0493 (patch) | |
tree | 69269c40ab24f4c55c1324f3290055d611bbbdb4 | |
download | aur-3caf2d2cc44c29a3b41dd77563e6c0a1bbbe0493.tar.gz |
First import
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 38 |
3 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..432831dbe73f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = python-fenics-ffcx-git + pkgdesc = Next generation FEniCS Form Compiler for finite element forms + pkgver = 0.7.0.dev0_r7060.5b3dbec + pkgrel = 1 + url = https://fenicsproject.org + arch = any + groups = dolfinx-git + license = MIT + makedepends = git + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + makedepends = python-setuptools + depends = python-fenics-ufl-git + depends = python-fenics-basix-git + depends = python-cffi + optdepends = python-pygraphviz: for the visualise_graph(...) utility function + conflicts = python-fenics-ffcx + source = git+https://github.com/FEniCS/ffcx + sha512sums = SKIP + +pkgname = python-fenics-ffcx-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..72e8ffc0db8a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cc9d7994e016 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Renato Caldas <renato@calgera.com> +# Contributor: Carlos Aznarán <caznaranl@uni.pe> +pkgname=('python-fenics-ffcx-git') +pkgdesc='Next generation FEniCS Form Compiler for finite element forms' +pkgver=0.7.0.dev0_r7060.5b3dbec +pkgrel=1 +arch=('any') +url='https://fenicsproject.org' +license=('MIT') +groups=('dolfinx-git') +depends=('python-fenics-ufl-git' 'python-fenics-basix-git' 'python-cffi') +makedepends=('git' 'python-build' 'python-installer' 'python-wheel' 'python-setuptools') +optdepends=('python-pygraphviz: for the visualise_graph(...) utility function') +conflicts=('python-fenics-ffcx') +source=('git+https://github.com/FEniCS/ffcx') +sha512sums=('SKIP') + +pkgver() { + cd "$srcdir/ffcx" + # The main branch unfortunately has no meaningful tags + printf "%s_r%s.%s" "$(sed -n -e 's/^version *= *\(.*\)/\1/p' setup.cfg)" \ + "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)" +} + +prepare() { + git -C "${srcdir}/ffcx" clean -dfx +} + +build() { + cd "$srcdir/ffcx" + python -m build --wheel --no-isolation +} + +package() { + cd "$srcdir/ffcx" + python -m installer --destdir="$pkgdir" dist/*.whl + install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgbase/LICENSE" +} |