diff options
author | Erich Eckner <git@eckner.net> | 2018-02-14 10:27:30 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-02-14 10:27:30 +0100 |
commit | c4c272ffd60e74ab2f5a25047d6322a8a4c660ff (patch) | |
tree | 9ce8a69b927560938ca5075194288d1263687c09 /alpine | |
parent | 6dbeada188f455f87f486f7d097b5b66d1b4dcb8 (diff) | |
download | archlinuxewe-c4c272ffd60e74ab2f5a25047d6322a8a4c660ff.tar.xz |
alpine: make pkgver() cooperate with checkVersions
Diffstat (limited to 'alpine')
-rw-r--r-- | alpine/PKGBUILD | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/alpine/PKGBUILD b/alpine/PKGBUILD index 0ae66db2a..907281db1 100644 --- a/alpine/PKGBUILD +++ b/alpine/PKGBUILD @@ -5,6 +5,7 @@ pkgname=alpine pkgver=2.21.9.r9.a6441d6 +_commit=${pkgver##*.} pkgrel=1 arch=("i686" "x86_64") pkgdesc="Apache licensed PINE mail user agent" @@ -18,7 +19,7 @@ provides=("pine") conflicts=("pine" "re-alpine") replaces=("pine") options=("!makeflags") -source=("git://repo.or.cz/alpine.git") +source=("alpine::git://repo.or.cz/alpine.git#commit=${_commit}") sha512sums=('SKIP') pkgver() { @@ -43,7 +44,7 @@ pkgver() { _line=${_pkgver% *} _pkgver=${_pkgver#* } _rev_count=$( - git rev-list "${_rev}" ^$(git blame -L${_line},${_line} -- Makefile | cut -d' ' -f1) --count + git rev-list "${_rev}" ^$(git blame -L${_line},${_line} "${_rev}" -- Makefile | cut -d' ' -f1) --count ) printf '%s.r%s.%s' \ "${_pkgver}" \ |