mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-19 06:26:14 -05:00
fix: derive AUR VCS version from Cargo after squash releases (#700)
This commit is contained in:
1 parent
408536807c
commit
6e99d8d81f
2 files changed
+10
-5
No files matched your search
@@ -1,7 +1,7 @@
|
||||
pkgbase = globalprotect-openconnect-git
|
||||
pkgdesc = A GUI client for GlobalProtect VPN, based on OpenConnect, supports the SSO authentication method.
|
||||
pkgver = 2.5.1.r1.g24f9bbb
|
||||
pkgrel = 2
|
||||
pkgver = 3.3.1.r623.g4085368
|
||||
pkgrel = 1
|
||||
url = https://github.com/yuezk/GlobalProtect-openconnect
|
||||
install = gp.install
|
||||
arch = x86_64
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
_pkgname_prefix=globalprotect-openconnect
|
||||
pkgname="${_pkgname_prefix}-git"
|
||||
pkgver=2.5.1.r1.g24f9bbb
|
||||
pkgrel=2
|
||||
pkgver=3.3.1.r623.g4085368
|
||||
pkgrel=1
|
||||
pkgdesc="A GUI client for GlobalProtect VPN, based on OpenConnect, supports the SSO authentication method."
|
||||
arch=(x86_64 aarch64)
|
||||
url="https://github.com/yuezk/GlobalProtect-openconnect"
|
||||
@@ -28,7 +28,12 @@ options=('!strip' '!lto')
|
||||
pkgver() {
|
||||
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() {
|
||||
|
||||
Reference in new issue
Block a user