Files
GlobalProtect-openconnect/packaging/aur/globalprotect-openconnect-git/PKGBUILD
T
Kevin Yue 86c8d188c4 feat: add connection dashboard and improve desktop authentication
Add tunnel configuration reporting, an optional CLI dashboard, manual browser authentication, native authentication controls, and broader client identity support. Improve TLS recovery, certificate validation, desktop notifications, and platform integration.
2026-10-19 23:26:38 +08:00

53 lines
1.4 KiB
Bash

# Maintainer: Kevin Yue <[email protected]>
_pkgname_prefix=globalprotect-openconnect
pkgname="${_pkgname_prefix}-git"
pkgver=2.5.1.r1.g24f9bbb
pkgrel=2
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"
license=('GPL3')
makedepends=(git pkg-config make autoconf automake gettext libtool patch curl wget file appmenu-gtk-module librsvg cargo)
depends=(openssl webkit2gtk-4.1 libappindicator-gtk3 libsecret libxml2 zlib lz4 gnutls libp11-kit nettle gmp shared-mime-info desktop-file-utils xdg-utils)
optdepends=('wmctrl: for window management')
conflicts=('globalprotect-openconnect')
provides=('globalprotect-openconnect' 'gpclient' 'gpservice' 'gpauth' 'gpgui')
install=gp.install
source=("${_pkgname_prefix}::git+https://github.com/yuezk/GlobalProtect-openconnect.git#branch=main")
sha256sums=("SKIP")
options=('!strip')
pkgver() {
cd "${_pkgname_prefix}"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "${_pkgname_prefix}"
git submodule update --init --recursive
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
# Must unset the CFLAGS, otherwise the build fails on linking openssl, don't know why
unset CFLAGS
cd "${_pkgname_prefix}"
cargo build --frozen --release
}
package() {
cd "${_pkgname_prefix}"
DESTDIR="$pkgdir" make install
}