blob: 7e85f3e0076f8c9041b5ec36189af958be617b7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Maintainer: Kevin Yue <k3vinyue@gmail.com>
_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 'openconnect>=8.20' webkit2gtk-4.1 curl wget file openssl appmenu-gtk-module libappindicator-gtk3 librsvg libsecret cargo)
depends=(vpnc openssl webkit2gtk-4.1 libappindicator-gtk3 libsecret libxml2 shared-mime-info desktop-file-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
}
|