From b27629aac276d92ed001cd40e0f21a64f939baf7 Mon Sep 17 00:00:00 2001 From: r0man1an Date: Mon, 11 May 2026 00:17:16 +0200 Subject: [PATCH] New package: mullvad-vpn-2026.2 --- srcpkgs/mullvad-vpn/files/mullvad-daemon/run | 13 ++++++ srcpkgs/mullvad-vpn/template | 44 ++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 srcpkgs/mullvad-vpn/files/mullvad-daemon/run create mode 100644 srcpkgs/mullvad-vpn/template diff --git a/srcpkgs/mullvad-vpn/files/mullvad-daemon/run b/srcpkgs/mullvad-vpn/files/mullvad-daemon/run new file mode 100644 index 00000000000000..3bd682a43294c5 --- /dev/null +++ b/srcpkgs/mullvad-vpn/files/mullvad-daemon/run @@ -0,0 +1,13 @@ +#!/bin/sh +exec 2>&1 + +while ! sv check dbus >/dev/null 2>&1; do + echo "mullvad-daemon: waiting for dbus..." + sleep 1 +done + +export MULLVAD_RESOURCE_DIR="/opt/Mullvad VPN/resources" +export PATH="/opt/Mullvad VPN/resources:$PATH" + +echo "mullvad-daemon: starting..." +exec /usr/bin/mullvad-daemon -v --disable-stdout-timestamps diff --git a/srcpkgs/mullvad-vpn/template b/srcpkgs/mullvad-vpn/template new file mode 100644 index 00000000000000..132a717ff4b53d --- /dev/null +++ b/srcpkgs/mullvad-vpn/template @@ -0,0 +1,44 @@ +# Template file for 'mullvad-vpn' +pkgname=mullvad-vpn +version=2026.2 +revision=1 +archs="x86_64 aarch64" +depends="alsa-lib gtk+3 iputils libnftnl libnotify nss" +short_desc="VPN client software for the Mullvad VPN service" +maintainer="Fabian Constantinescu " +license="GPL-3.0-or-later" +homepage="https://www.mullvad.net" +changelog="https://github.com/mullvad/mullvadvpn-app/blob/main/CHANGELOG.md" +nopie=yes +nostrip=yes + +case "$XBPS_TARGET_MACHINE" in + x86_64) + distfiles="https://github.com/mullvad/mullvadvpn-app/releases/download/${version}/MullvadVPN-${version}_amd64.deb" + checksum="7b027f5f1ab054b177fccb2237e019fa342874cafe2663eda5b71d5dee8734fa" + ;; + aarch64) + distfiles="https://github.com/mullvad/mullvadvpn-app/releases/download/${version}/MullvadVPN-${version}_arm64.deb" + checksum="869b8ba430373ccae53a4175ef67f43d963e7067b68019114d60b0c30609c10a" + ;; +esac + +do_extract() { + local _deb + case "$XBPS_TARGET_MACHINE" in + x86_64) _deb="MullvadVPN-${version}_amd64.deb" ;; + aarch64) _deb="MullvadVPN-${version}_arm64.deb" ;; + esac + cd ${XBPS_SRCDISTDIR}/${pkgname}-${version} + ar x ${_deb} + bsdtar xf data.tar.xz -C ${wrksrc} +} + +do_install() { + cp -r ${wrksrc}/opt ${DESTDIR}/ + cp -r ${wrksrc}/usr ${DESTDIR}/ + chmod 4755 "${DESTDIR}/opt/Mullvad VPN/chrome-sandbox" + rm -rf ${DESTDIR}/usr/lib + rm -rf ${DESTDIR}/usr/local + vsv mullvad-daemon +}