summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b74d1ea5162e8a81ed0769823149fa2d16a31ebd (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
# Maintainer: Lucas H. Gabrielli <heitzmann@gmail.com>

_base=ffc
pkgname=python-${_base}-git
pkgdesc="A compiler for finite element variational forms."
pkgver=0.1.0.19.g4a4714ad
pkgrel=1
arch=('any')
url="https://github.com/FEniCS/ffcx"
license=('GPL3')
groups=('fenics-git')
depends=('python-dijitso-git' 'python-fiat-git' 'python-ufl-git' 'pybind11')
makedepends=('python-setuptools' 'git')
options=(!emptydirs)
source=("${_base}::git+${url}.git")
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_base}"
  git describe --tags --match '*.*' | tr '-' '.'
}

build() {
	cd ffc
	python setup.py build
}

package() {
	cd ffc
	python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
}