Files
GlobalProtect-openconnect/packaging/pkgbuild/PKGBUILD.in
T
Kevin Yue 9864560f99 fix(linux): provide the XEmbed tray helper and i3 rules
Use the existing GTK 3 helper to render tray icons and menus for both desktop interfaces on X11. Ship optional i3 rules for centering GP Connect windows in Arch packages.
2026-12-05 00:10:43 +08:00

40 lines
1.1 KiB
Plaintext

# Maintainer: Keinv Yue <[email protected]>
_pkgname=@PKG_NAME@
pkgname=${_pkgname}
pkgver="@VERSION@"
pkgrel=@REVISION@
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=('make' 'pkg-config' 'cargo' 'file' 'autoconf' 'automake' 'gettext' 'libtool' 'patch')
depends=('webkit2gtk-4.1' 'librsvg' 'libsecret' 'appmenu-gtk-module'
'gnutls' 'libxml2' 'zlib' 'lz4' 'libp11-kit' 'nettle' 'libhogweed.so' 'gmp' 'xdg-utils')
optdepends=('wmctrl: for window management')
provides=('globalprotect-openconnect' 'gpclient' 'gpservice' 'gpauth' 'gpgui')
install=gp.install
source=("${_pkgname}-${pkgver}.tar.gz")
sha256sums=('SKIP')
options=('!strip')
build() {
cd "$pkgname-$pkgver"
# Must unset the CFLAGS, otherwise the build fails
unset CFLAGS
make build
}
package() {
cd "$pkgname-$pkgver"
make install DESTDIR="$pkgdir"
install -d "$pkgdir/usr/share/gpclient"
install -m 644 packaging/files/usr/share/gpclient/i3.conf "$pkgdir/usr/share/gpclient/"
}