diff options
author | Erich Eckner <git@eckner.net> | 2019-03-06 09:45:39 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-03-06 09:45:39 +0100 |
commit | 5044b648ba971889480e247a52d5a0458da8f5d3 (patch) | |
tree | 4b0796c61d987bc0d231ce4c412cb92a19d0b143 /alpine | |
parent | 4b847c9099076c38ae6e87677a74f6644f07c63d (diff) | |
download | archlinuxewe-5044b648ba971889480e247a52d5a0458da8f5d3.tar.xz |
alpine: version is set in configure, not Makefile (the latter is created and was removed from the tarball therefore)
Diffstat (limited to 'alpine')
-rw-r--r-- | alpine/PKGBUILD | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/alpine/PKGBUILD b/alpine/PKGBUILD index 71019e95a..f6b09c6fa 100644 --- a/alpine/PKGBUILD +++ b/alpine/PKGBUILD @@ -38,13 +38,15 @@ pkgver() { git rev-parse --short master ) _pkgver=$( - git archive "${_rev}" -- Makefile | \ + git archive "${_rev}" -- configure | \ tar -Ox | \ sed -n ' - /^VERSION\s*=/!d + /^\s*VERSION\s*=/!d = s/^.*=\s*// + s/['"'"'"]//g p + q ' | \ sed ' N @@ -54,7 +56,7 @@ pkgver() { _line=${_pkgver% *} _pkgver=${_pkgver#* } _rev_count=$( - git rev-list "${_rev}" ^$(git blame -L${_line},${_line} "${_rev}" -- Makefile | cut -d' ' -f1) --count + git rev-list "${_rev}" ^$(git blame -L${_line},${_line} "${_rev}" -- configure | cut -d' ' -f1) --count ) printf '%s.r%s.%s' \ "${_pkgver}" \ |