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

_base=ffc
_fragment="#branch=master"
pkgname=python-${_base}-git
pkgdesc="A compiler for finite element variational forms."
pkgver=20180827
pkgrel=1
arch=('any')
url="https://bitbucket.org/fenics-project/${_base}"
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+https://bitbucket.org/fenics-project/${_base}.git${_fragment}")
md5sums=('SKIP')

pkgver() {
	cd ${_base}
	git log --format="%cd" --date=short -1 | sed 's/-//g'
}

build() {
	cd ${_base}
	python setup.py build
}

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

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