diff options
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 18 |
2 files changed, 15 insertions, 9 deletions
@@ -1,8 +1,8 @@ # Generated by mksrcinfo v8 -# Wed Sep 25 06:35:35 UTC 2019 +# Mon Dec 2 09:28:40 UTC 2019 pkgbase = ghdl-mcode-git pkgdesc = VHDL simulator - mcode back-end - pkgver = 0.37dev.git20190925 + pkgver = 0.37dev.r4250.gd11ad228 pkgrel = 1 url = https://github.com/ghdl/ghdl arch = i686 @@ -15,7 +15,7 @@ pkgbase = ghdl-mcode-git conflicts = ghdl-gcc-git conflicts = ghdl-llvm-git source = ghdl::git://github.com/ghdl/ghdl.git - md5sums = SKIP + sha256sums = SKIP pkgname = ghdl-mcode-git @@ -1,7 +1,7 @@ # Maintainer: Adrien Prost-Boucle <adrien.prost-boucle@laposte.net> pkgname=ghdl-mcode-git -pkgver=0.37dev.git20190925 +pkgver=0.37dev.r4250.gd11ad228 pkgrel=1 arch=('i686' 'x86_64') pkgdesc='VHDL simulator - mcode back-end' @@ -15,7 +15,7 @@ makedepends=('gcc-ada' 'git') source=( "ghdl::git://github.com/ghdl/ghdl.git" ) -md5sums=( +sha256sums=( 'SKIP' ) @@ -23,11 +23,17 @@ pkgver() { cd "${srcdir}/ghdl" # GHDL version (extracted from configure) - _distver=`sed -n -e 's/^ghdl_version=.*"\(.*\)".*/\1/p' configure | tr -d '-'` - # Date of the last git commit - _gitver=`git log -n 1 --date=short | sed -n -e 's/.*Date:\s*\([0-9-]*\).*/\1/p' | tr -d -` + local _distver=`sed -n -e 's/^ghdl_version=.*"\(.*\)".*/\1/p' configure | tr -d '-'` - echo $_distver.git$_gitver; + # Date of the last git commit + #local _gitver=`git log -n 1 --date=short | sed -n -e 's/.*Date:\s*\([0-9-]*\).*/\1/p' | tr -d -` + # Revision number + local _gitrev=`git rev-list --count HEAD` + # Short hash oatest commit + local _githash=`git rev-parse --short HEAD` + + #echo $_distver.git$_gitver; + echo $_distver.r$_gitrev.g$_githash; } build() { |