summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fecbfaed250d0dc6167b34f3ec877aa8eac9be7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Maintainer: Sigvald Marholm <marholm@marebakken.com>
# Maintainer: Georg S. Voelker <voelker@maibox.org>
# Based on python-ufl-git, maintained by Lucas H. Gabrielli <heitzmann@gmail.com>

_base=ufl
pkgname=python-${_base}
pkgdesc="Unified form language (stable)."
pkgver=2022.3.0
pkgrel=1
arch=('any')
url="https://github.com/FEniCS/ufl-legacy"
license=('LGPL3')
groups=('fenics')
conflicts=('python-ufl-git')
depends=('python-numpy')
options=(!emptydirs)
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=(${_base}-legacy-${pkgver}.tar.gz::"${url}/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('2d0f4c88fe151d631e1d389faf61f58bbbe649fd08106e756fd5d6c53213660a')

prepare (){
    cd ${_base}-legacy-${pkgver}
    sed -i 's/README.rst/README.md/g' setup.cfg
}

build() {
	cd ${_base}-legacy-${pkgver}
	python -OO -m build --wheel --skip-dependency-check --no-isolation
}

package() {
	cd $srcdir/${_base}-legacy-${pkgver}
	PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer --destdir="${pkgdir}" dist/*.whl
    install -Dm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
}

# vim: shiftwidth=2 softtabstop=2 tabstop=2 noexpandtab