diff options
author | eDgar | 2021-08-31 15:03:28 -0500 |
---|---|---|
committer | eDgar | 2021-08-31 15:03:28 -0500 |
commit | 246339006cd3a6745b5203b1c79e480f968a63f1 (patch) | |
tree | 6d7fc3bebcb9d81d477301e236887d9ad0fd7268 | |
parent | 2ba2da2a22d4f20361d3cfa90a27ee04957504ca (diff) | |
download | aur-python-ffc-git.tar.gz |
pkgver by git tag; _base; url for source; gitignore
-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() { |