Skip to content

Commit 46c1843

Browse files
committed
New-package: mullvadvpn 2025.10.
1 parent 46fa9fe commit 46c1843

File tree

2 files changed

+69
-0
lines changed

2 files changed

+69
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
3+
export MULLVAD_RESOURCE_DIR=/usr/share/mullvad
4+
export MULLVAD_LOG_DIR=/var/log/mullvad-vpn
5+
export MULLVAD_SETTINGS_DIR=/etc/mullvad-vpn
6+
export MULLVAD_CACHE_DIR=/var/cache/mullvad-vpn
7+
export MULLVAD_RPC_SOCKET_PATH=/run/mullvad-vpn
8+
export MULLVAD_MANAGEMENT_SOCKET_GROUP=_mullvad
9+
10+
exec 2>&1
11+
exec /usr/bin/mullvad-daemon -v --disable-stdout-timestamps

srcpkgs/mullvadvpn/template

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Template file for 'mullvadvpn'
2+
pkgname=mullvadvpn
3+
version=2025.10
4+
revision=1
5+
_wggover=0.0.20230223-mullvad-0.1.6
6+
# archs set by upstream (likely due to how they invoke go)
7+
archs="x86_64* aarch64*"
8+
build_style=cargo
9+
build_helper=qemu
10+
make_build_args="
11+
-p mullvad-daemon --bin mullvad-daemon
12+
-p mullvad-cli --bin mullvad
13+
-p mullvad-setup --bin mullvad-setup
14+
-p mullvad-problem-report --bin mullvad-problem-report
15+
-p talpid-openvpn-plugin --lib
16+
-p mullvad-exclude --bin mullvad-exclude
17+
-p mullvad-api --bin relay_list"
18+
hostmakedepends="pkg-config go git protobuf protobuf-devel"
19+
makedepends="dbus-devel libnftnl-devel"
20+
short_desc="Mullvad VPN client app (cli only)"
21+
maintainer="dkwo <npiazza@disroot.org>"
22+
license="GPL-3.0-or-later"
23+
homepage="https://mullvad.net/"
24+
changelog="https://raw.githubusercontent.com/mullvad/mullvadvpn-app/refs/heads/main/CHANGELOG.md"
25+
distfiles="https://github.com/mullvad/mullvadvpn-app/archive/refs/tags/${version}.tar.gz
26+
https://github.com/mullvad/wireguard-go/archive/refs/tags/${_wggover}.tar.gz"
27+
checksum="c797b177d0a87cdc488f360d921f51b12e71cbe56cdc60f2390dba25da830efc
28+
fd9fa45155098223a17ea934eaa6eb44ee990cd2a7ab638bce482f62fd8502e8"
29+
skip_extraction="${_wggover}.tar.gz"
30+
system_groups="_mullvad"
31+
32+
post_extract() {
33+
vsrcextract -C wireguard-go-rs/libwg/wireguard-go "${_wggover}.tar.gz"
34+
}
35+
36+
post_build() {
37+
vtargetrun target/${RUST_TARGET}/release/relay_list > dist-assets/relays.json
38+
}
39+
40+
do_install() {
41+
for _bin in mullvad-daemon mullvad mullvad-problem-report mullvad-setup mullvad-exclude; do
42+
vbin target/${RUST_TARGET}/release/${_bin}
43+
done
44+
45+
vinstall target/${RUST_TARGET}/release/libtalpid_openvpn_plugin.so 644 usr/lib
46+
vinstall dist-assets/relays.json 644 usr/share/mullvad
47+
48+
compdir=$(mktemp -d)
49+
for _shell in bash zsh fish; do
50+
vtargetrun ${DESTDIR}/usr/bin/mullvad shell-completions ${_shell} ${compdir}
51+
done
52+
53+
vcompletion ${compdir}/mullvad.bash bash mullvad
54+
vcompletion ${compdir}/_mullvad zsh mullvad
55+
vcompletion ${compdir}/mullvad.fish fish mullvad
56+
57+
vsv mullvad
58+
}

0 commit comments

Comments
 (0)