mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-04-02 18:31:50 -04:00
34 lines
809 B
Bash
34 lines
809 B
Bash
# Maintainer: Keinv Yue <yuezk001@gmail.com>
|
|
|
|
pkgname=globalprotect-openconnect
|
|
pkgver=0
|
|
pkgrel=1
|
|
pkgdesc="A GlobalProtect VPN client (GUI) for Linux based on Openconnect and built with Qt5, supports SAML auth mode."
|
|
arch=(x86_64 aarch64)
|
|
url="https://github.com/yuezk/GlobalProtect-openconnect"
|
|
license=('GPL3')
|
|
depends=('openconnect>=8.0.0' qt5-base qt5-webengine qt5-websockets)
|
|
makedepends=(cmake)
|
|
provides=('gpclient' 'gpservice')
|
|
|
|
source=("${pkgname}.tar.gz")
|
|
sha256sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd $srcdir/$pkgname-*/
|
|
cat VERSION VERSION_SUFFIX
|
|
}
|
|
|
|
build() {
|
|
cd $srcdir/$pkgname-*/
|
|
cmake -B build \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_CXX_FLAGS_RELEASE=-s
|
|
make -j$(nproc) -C build
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/$pkgname-*/
|
|
make DESTDIR="$pkgdir/" install -C build
|
|
}
|