diff options
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | .gitignore | 8 | ||||
-rw-r--r-- | PKGBUILD | 11 |
3 files changed, 15 insertions, 7 deletions
@@ -1,6 +1,6 @@ pkgbase = python-ffc-git pkgdesc = A compiler for finite element variational forms. - pkgver = 20201007 + pkgver = 0.1.0.19.g4a4714ad pkgrel = 1 url = https://github.com/FEniCS/ffcx arch = any @@ -17,4 +17,3 @@ pkgbase = python-ffc-git md5sums = SKIP pkgname = python-ffc-git - diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..371760040d40 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +*.pkg.tar.xz +pkg +src +*\~ +*.bak +*.tar.gz + +ffc @@ -1,8 +1,9 @@ # Maintainer: Lucas H. Gabrielli <heitzmann@gmail.com> -pkgname=python-ffc-git +_base=ffc +pkgname=python-${_base}-git pkgdesc="A compiler for finite element variational forms." -pkgver=20201007 +pkgver=0.1.0.19.g4a4714ad pkgrel=1 arch=('any') url="https://github.com/FEniCS/ffcx" @@ -11,12 +12,12 @@ groups=('fenics-git') depends=('python-dijitso-git' 'python-fiat-git' 'python-ufl-git' 'pybind11') makedepends=('python-setuptools' 'git') options=(!emptydirs) -source=("ffc::git+https://github.com/FEniCS/ffcx.git") +source=("${_base}::git+${url}.git") md5sums=('SKIP') pkgver() { - cd ffc - git log --format="%cd" --date=short -1 | sed 's/-//g' + cd "${srcdir}/${_base}" + git describe --tags --match '*.*' | tr '-' '.' } build() { |