summaryrefslogtreecommitdiff
path: root/alpine
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-02-14 10:27:30 +0100
committerErich Eckner <git@eckner.net>2018-02-14 10:27:30 +0100
commitc4c272ffd60e74ab2f5a25047d6322a8a4c660ff (patch)
tree9ce8a69b927560938ca5075194288d1263687c09 /alpine
parent6dbeada188f455f87f486f7d097b5b66d1b4dcb8 (diff)
downloadarchlinuxewe-c4c272ffd60e74ab2f5a25047d6322a8a4c660ff.tar.xz
alpine: make pkgver() cooperate with checkVersions
Diffstat (limited to 'alpine')
-rw-r--r--alpine/PKGBUILD5
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}" \