mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-05-20 07:26:58 -04:00
Prepare release 1.4.3 (#149)
* add inih * add configuration file for gpservice * Disable the UI configuration for extra args * remove VERSION_SUFFIX * remove ppa-publish.sh * Use Git repo as the source for PKGBUILD * remove VERSION_SUFFIX * Use Git repo as the source for PKGBUILD * add .install for PKGBUILD * add configuration file * Fix cmake * Fix cmake * Disable snap job * update AUR packaging * Disable the UI configuration for extra args * improve packaging script * update README.md * restart gpservice after package upgrading
This commit is contained in:
@@ -1,33 +0,0 @@
|
||||
# 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
|
||||
}
|
@@ -1,28 +1,33 @@
|
||||
# Maintainer: Keinv Yue <yuezk001@gmail.com>
|
||||
|
||||
_pkgver="{VERSION}"
|
||||
_commit="{COMMIT}"
|
||||
pkgname=globalprotect-openconnect-git
|
||||
_pkgname=globalprotect-openconnect
|
||||
pkgver=0
|
||||
pkgver=${_pkgver}
|
||||
pkgrel=1
|
||||
pkgdesc="A GlobalProtect VPN client (GUI) for Linux based on Openconnect and built with Qt5, supports SAML auth mode. (development version)"
|
||||
arch=(x86_64 aarch64)
|
||||
url="https://github.com/yuezk/GlobalProtect-openconnect"
|
||||
license=('GPL3')
|
||||
backup=(
|
||||
etc/gpservice/gp.conf
|
||||
)
|
||||
install=gp.install
|
||||
depends=('openconnect>=8.0.0' qt5-base qt5-webengine qt5-websockets)
|
||||
makedepends=(cmake)
|
||||
makedepends=(git cmake)
|
||||
conflicts=('globalprotect-openconnect')
|
||||
provides=('gpclient' 'gpservice')
|
||||
provides=('globalprotect-openconnect' 'gpclient' 'gpservice')
|
||||
|
||||
source=("${_pkgname}.tar.gz")
|
||||
source=(git+https://github.com/yuezk/GlobalProtect-openconnect#commit=${_commit})
|
||||
sha256sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd $srcdir/$_pkgname-*/
|
||||
cat VERSION VERSION_SUFFIX
|
||||
prepare() {
|
||||
cd GlobalProtect-openconnect
|
||||
echo "${_pkgver}" > VERSION
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $srcdir/${_pkgname}-*/
|
||||
cd GlobalProtect-openconnect
|
||||
cmake -B build \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_CXX_FLAGS_RELEASE=-s
|
||||
@@ -30,6 +35,6 @@ build() {
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $srcdir/${_pkgname}-*/
|
||||
cd GlobalProtect-openconnect
|
||||
make DESTDIR="$pkgdir/" install -C build
|
||||
}
|
8
packaging/aur/gp.install
Executable file
8
packaging/aur/gp.install
Executable file
@@ -0,0 +1,8 @@
|
||||
post_install() {
|
||||
systemctl enable gpservice.service
|
||||
systemctl restart gpservice.service
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
Reference in New Issue
Block a user