mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-19 06:26:14 -05:00
Merge pull request #702 from yuezk/fix/defer-aur-tag-versioning
fix: defer AUR tag versioning until release promotion
This commit is contained in:
1 file changed
+6
-1
@@ -28,7 +28,12 @@ options=('!strip' '!lto')
|
|||||||
pkgver() {
|
pkgver() {
|
||||||
cd "${_pkgname_prefix}"
|
cd "${_pkgname_prefix}"
|
||||||
|
|
||||||
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
local version
|
||||||
|
version="$(awk -F '"' '
|
||||||
|
/^\[workspace.package\]$/ { in_workspace = 1; next }
|
||||||
|
in_workspace && /^version = / { print $2; exit }
|
||||||
|
' Cargo.toml)"
|
||||||
|
printf '%s.r%s.g%s\n' "$version" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||||
}
|
}
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
|
|||||||
Reference in new issue
Block a user