From 0df7805764ce3183e73f0ab9a37098b4a34d1366 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 12 Apr 2021 11:14:13 +0200 Subject: repair pkgver() to give *currently*checked*out* version, not *newest* --- gitstats-git/PKGBUILD | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'gitstats-git') diff --git a/gitstats-git/PKGBUILD b/gitstats-git/PKGBUILD index 2d1bf6f3e..e509b484e 100644 --- a/gitstats-git/PKGBUILD +++ b/gitstats-git/PKGBUILD @@ -2,20 +2,25 @@ # Contributor: Timo Schmiade pkgname=gitstats-git pkgver=294.55c5c28 +_commit="${_pkgver##*.}" pkgrel=1 pkgdesc="A statistics generator for git repositories." arch=("any") url="http://gitstats.sourceforge.net" license=('GPL3') depends=('git' 'python2' 'gnuplot') -source=("git+https://github.com/hoxu/gitstats.git") +source=("git+https://github.com/hoxu/gitstats.git#commit=${_commit}") md5sums=("SKIP") pkgver() { cd gitstats printf '%s.%s\n' \ - "$(git rev-list --count master)" \ - "$(git rev-parse --short master)" + "$( + git rev-list --count "${_commit}" + )" \ + "$( + git rev-parse --short "${_commit}" + )" } package() { -- cgit v1.2.3-54-g00ecf