blob: cac1192365887031b2def1dec88507e92376da5a (
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
|
# Maintainer: Timothy Gelter <timothy dot gelter plus aur at gmail dot com>
pkgname=globalprotect-bin
pkgver=6.0.1.1
pkgrel=6
pkgdesc="GlobalProtect VPN client Agent"
arch=('x86_64')
url="https://docs.paloaltonetworks.com/globalprotect/5-2/globalprotect-app-user-guide/globalprotect-app-for-linux/download-and-install-the-globalprotect-app-for-linux"
license=('custom')
groups=()
depends=('qt5-webkit' 'wmctrl')
options=()
install=globalprotect.install
source=("local://GlobalProtect_tar-$pkgver-$pkgrel.tgz"
"local://GlobalProtect_UI_tar-$pkgver-$pkgrel.tgz")
sha256sums=('e761c7925b222bb6f7260ab143e50b1a741472d866ba0e75641cfb2124a75e01'
'1202c7aee105d44772915a00fe8693f4f49c994f32ccd6f08447545c2a0521be')
package(){
# Adapted for Arch Linux from package tarball's install.sh
GPDIR="$pkgdir/opt/paloaltonetworks/globalprotect"
mkdir -m 755 -p $GPDIR
# skipping install logging for packaging purposes
cp -f globalprotect PanGPA PanGPS PanGpHip PanGpHipMp $GPDIR/
cp -df *.so* $GPDIR/
# TODO: Test/fixup gpshow.sh gp_support.sh, as needed
cp -f license.cfg gpd gpd.service gpa.service PanMSInit.sh pre_exec_gps.sh gpshow.sh gp_support.sh globalprotect.1.gz \
PanGPUI.desktop PanGPUI globalprotect.png gp.desktop $GPDIR/
# TODO: post-install script to run update-desktop-database so the desktop files are known w/out reboot?
install -Dm644 $GPDIR/PanGPUI.desktop "$pkgdir/usr/share/applications/PanGPUI.desktop"
install -Dm755 $GPDIR/PanGPUI "$pkgdir/PanGPUI"
install -Dm644 $GPDIR/globalprotect.png "$pkgdir/usr/share/icons/hicolor/48x48/apps/globalprotect.png"
install -Dm644 $GPDIR/gp.desktop "$pkgdir/usr/share/applications/gp.desktop"
install -Dm644 $GPDIR/globalprotect.1.gz "$pkgdir/usr/share/man/man1/globalprotect.1.gz"
install -Dm755 $GPDIR/globalprotect "$pkgdir/usr/bin/globalprotect"
install -Dm644 $GPDIR/gpd.service "$pkgdir/usr/lib/systemd/system/gpd.service"
install -Dm644 $GPDIR/gpa.service "$pkgdir/usr/lib/systemd/system/gpa.service"
install -Dm644 $GPDIR/PanMSInit.sh "$pkgdir/etc/profile.d/PanMSInit.sh"
}
|