yochananmarqos

mozillavpn

Jan 13th, 2021 (edited)
256
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # https://aur.archlinux.org/packages/mozillavpn
  2. pkgname=mozillavpn
  3. pkgver=2.0.3
  4. pkgrel=1
  5. pkgdesc="A fast, secure and easy to use VPN. Built by the makers of Firefox."
  6. arch=('x86_64')
  7. url="https://vpn.mozilla.org"
  8. license=('GPL')
  9. depends=('polkit'
  10.          'qt5-charts'
  11.          'qt5-declarative'
  12.          'qt5-graphicaleffects'
  13.          'qt5-imageformats'
  14.          'qt5-networkauth'
  15.          'qt5-quickcontrols2'
  16.          'qt5-svg'
  17.          'hicolor-icon-theme'
  18.          'wireguard-tools')
  19. makedepends=('git' 'qt5-tools')
  20. conflicts=('mozlla-vpn-client')
  21. replaces=('mozilla-vpn-client')
  22. source=("git+https://github.com/mozilla-mobile/mozilla-vpn-client.git#tag=v$pkgver"
  23.         'git+https://github.com/KDAB/android_openssl.git'
  24.         'git+https://github.com/WireGuard/wireguard-apple.git'
  25.         'git+https://github.com/WireGuard/wireguard-go.git'
  26.         'git+https://github.com/WireGuard/wireguard-tools.git'
  27.         'git+https://github.com/mozilla-l10n/mozilla-vpn-client-l10n.git')
  28. sha256sums=('SKIP'
  29.             'SKIP'
  30.             'SKIP'
  31.             'SKIP'
  32.             'SKIP'
  33.             'SKIP')
  34.  
  35. prepare() {
  36.     cd "$srcdir/mozilla-vpn-client"
  37.  
  38.     git submodule init 3rdparty/openSSL
  39.     git config submodule.android_openssl.url "$srcdir/android_openssl"
  40.  
  41.     git submodule init 3rdparty/wireguard-apple
  42.     git config submodule.wireguard-apple.url "$srcidr/wireguard-apple"
  43.  
  44.     git submodule init 3rdparty/wireguard-go
  45.     git config submodule.wireguard-go.url "$srcdir/wireguard-go"
  46.  
  47.     git submodule init 3rdparty/wireguard-tools
  48.     git config submodule.wireguard-tools.url "$srcdir/wireguard-tools"
  49.  
  50.     git submodule init i18n
  51.     git config submodule.mozilla-vpn-client-l10n.url "$srcdir/mozilla-vpn-client-l10n"
  52.  
  53.     git submodule update
  54. }
  55.  
  56. build() {
  57.     cd "$srcdir/mozilla-vpn-client"
  58.     qmake \
  59.         PREFIX=/usr \
  60.         CONFIG+=production \
  61.         CONFIG-=debug \
  62.         CONFIG+=release \
  63.         CONFIG-=debug_and_release
  64.     make
  65. }
  66.  
  67. package() {
  68.     cd "$srcdir/mozilla-vpn-client"
  69.     make INSTALL_ROOT="$pkgdir" install
  70. }
RAW Paste Data