diff options
-rw-r--r-- | .SRCINFO | 9 | ||||
-rw-r--r-- | PKGBUILD | 48 |
2 files changed, 32 insertions, 25 deletions
@@ -1,15 +1,18 @@ pkgbase = torguard pkgdesc = TorGuard VPN Software Stay private online with TorGuard's anonymous VPN software and connect to 37+ countries worldwide. - pkgver = 3.89.0 + pkgver = 3.90.0 pkgrel = 1 url = https://www.torguard.com arch = x86_64 license = custom depends = iproute2 depends = qt5-base - source = https://updates.torguard.biz/Software/Linux/torguard-v3.89.0-amd64-arch.tar.gz + depends = openvpn + depends = shadowsocks-libev + depends = stunnel + source = https://updates.torguard.biz/Software/Linux/torguard-v3.90.0-amd64-arch.tar.gz source = torguard.sysusers - sha256sums = 1a097a9761f59a63f281854e693c6bd0b20d765bd99ce7533a9449e0c6745aec + sha256sums = 710481abbee583a74394a0a95d0e6440e6b79532361ba4e5831e43ca02686bdb sha256sums = b1f954c54725794f94009c72e12746f203ce6dd4318a19ad0c10d5d8684cd873 pkgname = torguard @@ -3,40 +3,44 @@ # Contributor: thatgeek # Contributor: TorGuard Support <support@torguard.com> pkgname=torguard -pkgver=3.89.0 +pkgver=3.90.0 pkgrel=1 pkgdesc="TorGuard VPN Software Stay private online with TorGuard's anonymous VPN software and connect to 37+ countries worldwide." arch=('x86_64') url="https://www.torguard.com" depends=('iproute2' - 'qt5-base') + 'qt5-base' + 'openvpn' + 'shadowsocks-libev' + 'stunnel') license=(custom) -source=("https://updates.torguard.biz/Software/Linux/torguard-v3.89.0-amd64-arch.tar.gz" +source=("https://updates.torguard.biz/Software/Linux/torguard-v3.90.0-amd64-arch.tar.gz" 'torguard.sysusers') -sha256sums=('1a097a9761f59a63f281854e693c6bd0b20d765bd99ce7533a9449e0c6745aec' +sha256sums=('710481abbee583a74394a0a95d0e6440e6b79532361ba4e5831e43ca02686bdb' 'b1f954c54725794f94009c72e12746f203ce6dd4318a19ad0c10d5d8684cd873') -package() { +prepare() { tar -xf "${srcdir}/${pkgname}-v${pkgver}-amd64-arch/torguard-v${pkgver}-amd64-arch.tar" - cp -r "${srcdir}/${pkgname}-v${pkgver}-amd64-arch/etc" "${pkgdir}/" -R - cp -r "${srcdir}/${pkgname}-v${pkgver}-amd64-arch/opt" "${pkgdir}/" -R - cp -r "${srcdir}/${pkgname}-v${pkgver}-amd64-arch/usr" "${pkgdir}/" -R +} + +package() { + mkdir "$pkgdir"/opt/ + mkdir "$pkgdir"/opt/torguard/ + mkdir "$pkgdir"/opt/torguard/bin/ + + cp "${srcdir}/${pkgname}-v${pkgver}-amd64-arch/opt/torguard/bin/torguard" "${pkgdir}/opt/torguard/bin/" + cp "${srcdir}/${pkgname}-v${pkgver}-amd64-arch/opt/torguard/bin/openconnect" "${pkgdir}/opt/torguard/bin/" + cp "${srcdir}/${pkgname}-v${pkgver}-amd64-arch/opt/torguard/bin/vpnc-script" "${pkgdir}/opt/torguard/bin/" + cp -r "${srcdir}/${pkgname}-v${pkgver}-amd64-arch/usr" "${pkgdir}/" -R - find "$pkgdir"/opt/torguard/ -type f -exec chmod 644 {} \; - find "$pkgdir"/opt/torguard/ -name torguard -exec chmod 755 {} \; - find "$pkgdir"/opt/torguard/ -name torguard-wrapper -exec chmod 755 {} \; - find "$pkgdir"/opt/torguard/ -name ss-local -exec chmod 755 {} \; - find "$pkgdir"/opt/torguard/ -name openvpn_v2_4 -exec chmod 755 {} \; - find "$pkgdir"/opt/torguard/ -name openconnect -exec chmod 755 {} \; - find "$pkgdir"/opt/torguard/ -name vpnc-script -exec chmod 755 {} \; - find "$pkgdir"/opt/torguard/ -name stunnel -exec chmod 755 {} \; - find "$pkgdir"/opt/torguard/bin/ -name torguard-startup.desktop -exec chmod 664 {} \; - find "$pkgdir"/etc/sudoers.d/ -name torguard -exec chmod 440 {} \; - find "$pkgdir"/etc/sudoers.d/ -type d -exec chmod 750 {} \; + find "$pkgdir"/opt/torguard/ -type f -exec chmod 644 {} \; + find "$pkgdir"/opt/torguard/ -name torguard -exec chmod 755 {} \; + find "$pkgdir"/opt/torguard/ -name vpnc-script -exec chmod 755 {} \; - install -d "$pkgdir"/usr/bin/ - ln -s /opt/torguard/bin/torguard-wrapper "$pkgdir"/usr/bin/torguard + install -d "$pkgdir"/usr/bin/ + ln -s /opt/torguard/bin/torguard "$pkgdir"/usr/bin/torguard + ln -s /usr/bin/openvpn "$pkgdir"/opt/torguard/bin/openvpn_v2_4 - install -Dm644 ${pkgname}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${pkgname}.conf + install -Dm644 ${pkgname}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${pkgname}.conf } |