Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions srcpkgs/mullvad-vpn/files/mullvad-daemon/run
Original file line number Diff line number Diff line change
@@ -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
44 changes: 44 additions & 0 deletions srcpkgs/mullvad-vpn/template
Original file line number Diff line number Diff line change
@@ -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 <fabian.constantinescu@protonmail.com>"
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
}