diff options
author | Carl Smedstad | 2023-03-13 22:12:44 +0100 |
---|---|---|
committer | Carl Smedstad | 2023-03-13 22:13:05 +0100 |
commit | 932198063c14edbe3f032332892790ee5e2dfa46 (patch) | |
tree | 5fc18d3c31312a296c24e1d0c16b8ede7eaede69 | |
parent | 24e6f16fc21ce6e1b0e86e611e872f434024fd67 (diff) | |
download | aur-932198063c14edbe3f032332892790ee5e2dfa46.tar.gz |
Use Fedora 32 source instead of Ubuntu 20.04
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 23 | ||||
-rw-r--r-- | cyberghostvpn.install | 22 |
3 files changed, 19 insertions, 33 deletions
@@ -1,9 +1,8 @@ pkgbase = cyberghostvpn pkgdesc = CyberGhost VPN pkgver = 1.4.1 - pkgrel = 1 + pkgrel = 2 url = https://www.cyberghostvpn.com - install = cyberghostvpn.install arch = any license = custom:cyberghostvpn makedepends = zip @@ -11,7 +10,7 @@ pkgbase = cyberghostvpn depends = openvpn depends = wireguard-tools depends = systemd-resolvconf - source = https://download.cyberghostvpn.com/linux/cyberghostvpn-ubuntu-20.04-1.4.1.zip - sha256sums = 355ab80f3445968161f6db9565857a9af8df61fd6292b4c4267579ff128f3007 + source = https://download.cyberghostvpn.com/linux/cyberghostvpn-fedora-32-1.4.1.zip + sha256sums = 772d3278eaffa7dd5f91a5d988efbf0ff6e0521188cfb5445c14207d3172ee44 pkgname = cyberghostvpn @@ -3,7 +3,7 @@ pkgname=cyberghostvpn pkgver=1.4.1 -pkgrel=1 +pkgrel=2 pkgdesc="CyberGhost VPN" url="https://www.cyberghostvpn.com" arch=(any) @@ -15,14 +15,23 @@ depends=( systemd-resolvconf ) makedepends=(zip) -install="${pkgname}.install" -source=("https://download.cyberghostvpn.com/linux/cyberghostvpn-ubuntu-20.04-${pkgver}.zip") -sha256sums=('355ab80f3445968161f6db9565857a9af8df61fd6292b4c4267579ff128f3007') +source=("https://download.cyberghostvpn.com/linux/cyberghostvpn-fedora-32-${pkgver}.zip") +sha256sums=('772d3278eaffa7dd5f91a5d988efbf0ff6e0521188cfb5445c14207d3172ee44') + +_archive="${pkgname}-fedora-32-${pkgver}" package() { - mkdir -p "$pkgdir/opt/cyberghost" + cd "$_archive" + + install -Dm 755 cyberghost/cyberghostvpn "$pkgdir/opt/cyberghost/cyberghostvpn" + install -Dm 755 cyberghost/update-systemd-resolved "$pkgdir/opt/cyberghost/update-systemd-resolved" + + install -Dm 644 cyberghost/certs/openvpn/ca.crt "$pkgdir/opt/cyberghost/certs/openvpn/ca.crt" + install -Dm 644 cyberghost/certs/openvpn/client.crt "$pkgdir/opt/cyberghost/certs/openvpn/client.crt" + install -Dm 644 cyberghost/certs/openvpn/client.key "$pkgdir/opt/cyberghost/certs/openvpn/client.key" - install -m 755 "$srcdir/${pkgname}-ubuntu-20.04-${pkgver}/cyberghost/cyberghostvpn" "$pkgdir/opt/cyberghost/" - install -m 755 "$srcdir/${pkgname}-ubuntu-20.04-${pkgver}/cyberghost/update-systemd-resolved" "$pkgdir/opt/cyberghost/" + install -dm 755 $pkgdir/usr/bin + ln -s /opt/cyberghost/cyberghostvpn $pkgdir/usr/bin/cyberghostvpn + ln -s /opt/cyberghost/update-systemd-resolved $pkgdir/usr/bin/update-systemd-resolved } diff --git a/cyberghostvpn.install b/cyberghostvpn.install deleted file mode 100644 index 4279604432ff..000000000000 --- a/cyberghostvpn.install +++ /dev/null @@ -1,22 +0,0 @@ -all_off="$(tput sgr0)" -bold="${all_off}$(tput bold)" -blue="${bold}$(tput setaf 4)" -yellow="${bold}$(tput setaf 3)" - -note() { - printf "%s==>%s NOTE:%s %s%s\n" "${blue}" "${yellow}" "${bold}" "$1" "${all_off}" -} - -post_install() { - ln -sf /opt/cyberghost/cyberghostvpn /usr/bin/cyberghostvpn - note "Enable systemd-resolved: systemctl enable systemd-resolved.service" - note "Setup your account: cyberghostvpn --setup" -} - -post_upgrade() { - post_install -} - -post_remove() { - unlink /usr/bin/cyberghostvpn -} |