1
0
mirror of https://github.com/cclassic/model-ghdl synced 2024-11-24 08:45:05 +01:00

Changed versioning to include nth commit instead of only commit hash

This commit is contained in:
Markus Koch 2016-06-04 16:30:19 +02:00
parent 964e9fd055
commit fad1f6433c

View File

@ -1,7 +1,7 @@
# Maintainer: Markus Koch <CClassicVideos@aol.com> # Maintainer: Markus Koch <CClassicVideos@aol.com>
pkgname=model-ghdl pkgname=model-ghdl
pkgver=cee0976 pkgver=59.cee0976
pkgrel=1 pkgrel=1
pkgdesc='A wrapper for ghdl to make it look like modelsim.' pkgdesc='A wrapper for ghdl to make it look like modelsim.'
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
@ -14,7 +14,8 @@ sha1sums=('SKIP')
pkgver() { pkgver() {
cd "$srcdir/model-ghdl" cd "$srcdir/model-ghdl"
echo $(git log |head -n 1|sed "s/.* //g" | head -c 7) echo -n $(git log|grep -e ^commit|wc -l).
echo $(git log | head -n 1 | sed "s/.* //g" | head -c 7)
} }
build() { build() {