Add gp-suspend.service

This commit is contained in:
Kevin Yue
2024-03-27 09:19:08 -04:00
parent 187ca778f2
commit e602b3b018
10 changed files with 157 additions and 10 deletions

View File

@@ -14,6 +14,8 @@ optdepends=('wmctrl: for window management')
provides=('globalprotect-openconnect' 'gpclient' 'gpservice' 'gpauth' 'gpgui')
install=gp.install
source=("${_pkgname}-${pkgver}.tar.gz")
sha256sums=('SKIP')
@@ -31,5 +33,5 @@ build() {
package() {
cd "$pkgname-$pkgver"
make install DESTDIR="$pkgdir"
make install DESTDIR="$pkgdir" INCLUDE_SYSTEMD=1 ENABLE_SERVICE=0
}

View File

@@ -0,0 +1,12 @@
post_install() {
systemctl --system daemon-reload
systemctl enable gpservice.service
}
post_upgrade() {
post_install
}
post_remove() {
systemctl disable gpservice.service
}