summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD18
2 files changed, 15 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2cca8ef42c4..588087a47b6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index 109efdaee5f..4c047c68047 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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() {