diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 62 |
1 files changed, 16 insertions, 46 deletions
@@ -1,55 +1,25 @@ -# Maintainer: Matthew McGinn <mamcgi@gmail.com> -# Contributor: alicewww <almw@protonmail.com> - +# Maintainer: Mark Wagie <yochanan dot marqos at gmail dot com> +# Contributor: Matthew McGinn <mamcgi at gmail dot com> +# Contributor: alicewww <almw at protonmail dot com> pkgname=mullvad-vpn pkgver=2019.9 -pkgrel=3 -pkgdesc="VPN Client for Mullvad.net, a bitcoin-friendly VPN for anonymity and privacy" -_github_url="https://github.com/mullvad/mullvadvpn-app" +pkgrel=4 +pkgdesc="The Mullvad VPN client app for desktop" url="https://www.mullvad.net" arch=('x86_64') license=('GPL3') depends=('gconf' 'gtk3' 'libnotify' 'libappindicator-gtk2' 'libxss' 'nss') -conflicts=('mullvad-vpn-old') -replaces=('mullvad-vpn-old') -provides=($pkgname) -install=$pkgname-bin.install -validpgpkeys=("A1198702FC3E0A09A9AE5B75D5A1D4F266DE8DDF") # Mullvad (code signing) <admin@mullvad.net> -source=("https://github.com/mullvad/mullvadvpn-app/releases/download/${pkgver}/MullvadVPN-${pkgver}_${arch}.rpm" -"https://github.com/mullvad/mullvadvpn-app/releases/download/${pkgver}/MullvadVPN-${pkgver}_${arch}.rpm.asc") - -md5sums=('046015c4657582c4b47392203f4ea08e' - 'SKIP') +install="$pkgname.install" +source=("https://github.com/mullvad/mullvadvpn-app/releases/download/$pkgver/MullvadVPN-${pkgver}_amd64.deb"{,.asc}) +sha256sums=('4ba5b1c87cb5afdadbcfb37413bdd7ea72df139dd01815e9ca0f1c54f81f03e1' + 'SKIP') +validpgpkeys=('A1198702FC3E0A09A9AE5B75D5A1D4F266DE8DDF') # Mullvad (code signing) <admin@mullvad.net> package() { - # Install systemd service - sed -i 's/Mullvad\\x20VPN/mullvad-vpn/g' "opt/Mullvad VPN/resources/mullvad-daemon.service" - install -Dm644 "opt/Mullvad VPN/resources/mullvad-daemon.service" \ - "${pkgdir}/usr/lib/systemd/system/mullvad-daemon.service" - - # Install the main files. - install -d "${pkgdir}/opt/${pkgname}" - cp -a "${srcdir}/opt/Mullvad VPN/." "${pkgdir}/opt/${pkgname}" - - # Make it exec - chmod 755 "${pkgdir}/opt/${pkgname}/mullvad-gui" - - # Main binary - mkdir -p ${pkgdir}/usr/bin - ln -s "/opt/${pkgname}/mullvad-gui" "${pkgdir}/usr/bin/${pkgname}" - ln -s "/opt/${pkgname}/resources/mullvad-problem-report" "${pkgdir}/usr/bin/mullvad-problem-report" - - # Desktop Entry - install -d "${pkgdir}/usr/share/applications" - sed -i 's/Exec=.*/Exec=\/usr\/bin\/mullvad-vpn/g' \ - "usr/share/applications/${pkgname}.desktop" - install -Dm644 "usr/share/applications/${pkgname}.desktop" \ - "${pkgdir}/usr/share/applications/${pkgname}.desktop" - - # CLI binary - install -m755 "${srcdir}/usr/bin/mullvad" "${pkgdir}/usr/bin/mullvad" - - # Icons - install -dm755 "${pkgdir}/usr/share/icons/hicolor" - cp -a "${srcdir}/usr/share/icons/hicolor/." "${pkgdir}/usr/share/icons/hicolor" + tar -xvf data.tar.xz -C "$pkgdir" + + ln -s "/opt/Mullvad VPN/mullvad-gui" "$pkgdir/usr/bin/$pkgname" + + install -Dm644 "$pkgdir/opt/Mullvad VPN/resources/mullvad-daemon.service" \ + "$pkgdir/usr/lib/systemd/system/mullvad-daemon.service" } |