diff options
-rw-r--r-- | .SRCINFO | 34 | ||||
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | PKGBUILD | 72 | ||||
-rw-r--r-- | mozillavpn.install | 34 |
4 files changed, 91 insertions, 52 deletions
@@ -1,39 +1,39 @@ pkgbase = mozillavpn - pkgdesc = A fast, secure and easy to use VPN. Built by the makers of Firefox + pkgdesc = Fast, secure, and easy to use VPN from the makers of Firefox pkgver = 2.19.0 - pkgrel = 4 + pkgrel = 5 url = https://vpn.mozilla.org install = mozillavpn.install arch = x86_64 license = MPL2 + makedepends = cargo + makedepends = clang makedepends = cmake - makedepends = qt6-tools - makedepends = go makedepends = flex - makedepends = python-yaml + makedepends = go makedepends = python-lxml - makedepends = clang - makedepends = cargo - depends = polkit + makedepends = python-yaml + makedepends = qt6-tools + depends = dbus + depends = freetype2 + depends = hicolor-icon-theme + depends = libtiff depends = libxcb + depends = libxdmcp depends = libxmu depends = libxrender - depends = libtiff - depends = libxdmcp - depends = dbus - depends = freetype2 + depends = polkit + depends = qt6-5compat depends = qt6-charts depends = qt6-declarative - depends = qt6-websockets depends = qt6-imageformats depends = qt6-networkauth - depends = qt6-svg - depends = qt6-5compat depends = qt6-shadertools - depends = hicolor-icon-theme + depends = qt6-svg + depends = qt6-websockets depends = wireguard-tools - optdepends = resolvconf: for resolv.conf management optdepends = qt6-wayland: for Wayland support + optdepends = resolvconf: for resolv.conf management options = !lto source = https://launchpad.net/~mozillacorp/+archive/ubuntu/mozillavpn/+sourcefiles/mozillavpn/2.19.0-mantic1/mozillavpn_2.19.0.orig.tar.gz source = mozillavpn.install diff --git a/.gitignore b/.gitignore index cc67b0b4d0bf..018a3de08144 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ * -!.gitignore !PKGBUILD !.SRCINFO -!*.install +!.gitignore @@ -1,67 +1,83 @@ # Maintainer XavierCLL <xavier.corredor.llano (a) gmail.com> -# Contributor: xiota / aur.chaotic.cx # Contributor: Utsav <aur (a) utsav2 [.] dev> # Contributor: Tavian Barnes <tavianator@tavianator.com> # Contributor: jhorcl # Contributor: flbzh <frederic_lebouc (a) yahoo.fr> # Contributor: RafaĆ Wyszomirski <m6vuthzbw at mozmail dot com> +## useful urls: +# https://vpn.mozilla.org +# https://github.com/mozilla-mobile/mozilla-vpn-client +# https://launchpad.net/~mozillacorp/+archive/ubuntu/mozillavpn/+packages + pkgname=mozillavpn pkgver=2.19.0 -_debian_series=mantic1 -pkgrel=4 -pkgdesc="A fast, secure and easy to use VPN. Built by the makers of Firefox" +pkgrel=5 +pkgdesc="Fast, secure, and easy to use VPN from the makers of Firefox" arch=('x86_64') url="https://vpn.mozilla.org" license=('MPL2') options=('!lto') depends=( - 'polkit' + 'dbus' + 'freetype2' + 'hicolor-icon-theme' + 'libtiff' 'libxcb' + 'libxdmcp' 'libxmu' 'libxrender' - 'libtiff' - 'libxdmcp' - 'dbus' - 'freetype2' + 'polkit' + 'qt6-5compat' 'qt6-charts' 'qt6-declarative' - 'qt6-websockets' 'qt6-imageformats' 'qt6-networkauth' - 'qt6-svg' - 'qt6-5compat' 'qt6-shadertools' - 'hicolor-icon-theme' + 'qt6-svg' + 'qt6-websockets' 'wireguard-tools' ) -optdepends=( - 'resolvconf: for resolv.conf management' - 'qt6-wayland: for Wayland support' -) makedepends=( + 'cargo' + 'clang' 'cmake' - 'qt6-tools' - 'go' 'flex' - 'python-yaml' + 'go' 'python-lxml' - 'clang' - 'cargo' + 'python-yaml' + 'qt6-tools' +) +optdepends=( + 'qt6-wayland: for Wayland support' + 'resolvconf: for resolv.conf management' ) + install=mozillavpn.install -# https://launchpad.net/~mozillacorp/+archive/ubuntu/mozillavpn/+packages -source=("https://launchpad.net/~mozillacorp/+archive/ubuntu/mozillavpn/+sourcefiles/mozillavpn/${pkgver}-${_debian_series}/mozillavpn_${pkgver}.orig.tar.gz" "mozillavpn.install") + +_debian_series="mantic1" +_dl_url="https://launchpad.net/~mozillacorp/+archive/ubuntu/mozillavpn/+sourcefiles/mozillavpn" +_pkgsrc="$pkgname-$pkgver" +source=( + "$_dl_url/${pkgver}-${_debian_series}/mozillavpn_${pkgver}.orig.tar.gz" + "mozillavpn.install" +) sha256sums=('36754d1f0e2f3ff5b08cecf691b7e158981356dc53b55152d93925f1b4d87e03' 'fd50a85e735f755857a02100a9a567bdb9af439d442c4fe72c6e76c108d7b303') build() { - cd "${pkgname}-${pkgver}" - cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -Wno-dev + local _cmake_options=( + -B build + -S "$_pkgsrc" + -DCMAKE_BUILD_TYPE=Release + -DCMAKE_INSTALL_PREFIX='/usr' + -Wno-dev + ) + + cmake "${_cmake_options[@]}" cmake --build build } package() { - cd "${pkgname}-${pkgver}" - DESTDIR="${pkgdir}" cmake --install build + DESTDIR="$pkgdir" cmake --install build } diff --git a/mozillavpn.install b/mozillavpn.install index 7cc4c49f1c39..13a909008837 100644 --- a/mozillavpn.install +++ b/mozillavpn.install @@ -1,10 +1,34 @@ +# Colored makepkg-like functions +msg_blue() { + printf "${BLUE}==>${BOLD} $1${ALL_OFF}\n" +} + +note1() { + printf "${BLUE}==>${YELLOW} NOTE:${BOLD} $1${ALL_OFF}\n" +} + +note2() { + printf "${BLUE}==> ${BOLD} $1${ALL_OFF}\n" +} + +ALL_OFF="$(tput sgr0)" +BOLD="${ALL_OFF}$(tput bold)" +BLACK="${BOLD}$(tput setaf 0)" +RED="${BOLD}$(tput setaf 1)" +GREEN="${BOLD}$(tput setaf 2)" +YELLOW="${BOLD}$(tput setaf 3)" +BLUE="${BOLD}$(tput setaf 4)" +MAGENTA="${BOLD}$(tput setaf 5)" +CYAN="${BOLD}$(tput setaf 6)" +WHITE="${BOLD}$(tput setaf 7)" + post_install() { - echo '>>> enable & start the Mozilla VPN daemon with:' - echo '>>> systemctl enable mozillavpn.service' - echo '>>> systemctl start mozillavpn.service' + note1 'Enable and start the Mozilla VPN daemon with:' + note2 ' systemctl enable mozillavpn.service' + note2 ' systemctl start mozillavpn.service' } post_upgrade() { - echo '>>> Mozilla VPN daemon must be restart after updating with:' - echo '>>> systemctl restart mozillavpn.service' + note1 'Restart the Mozilla VPN daemon with:' + note2 ' systemctl restart mozillavpn.service' } |