5 Commits

Author SHA1 Message Date
29043fedc1 Add wayland-dev as slint build dependency 2026-04-17 16:30:40 +02:00
6462c4e25d Update submodules to 236bbc4c 2026-04-17 16:26:59 +02:00
6899a71899 Add early-boot-blocking.service 2026-04-17 16:24:55 +02:00
3ff5cf83fc APKBUILD fixes 2026-04-12 12:52:08 +02:00
84c30e3130 Update submodule to 4470547b 2026-04-10 11:52:07 +02:00
5 changed files with 34 additions and 33 deletions

View File

@@ -14,7 +14,8 @@ RUN apk update && apk add \
libmnl libmnl-dev \ libmnl libmnl-dev \
libnftnl libnftnl-dev \ libnftnl libnftnl-dev \
dbus dbus-dev \ dbus dbus-dev \
fontconfig-dev fontconfig-dev \
wayland-dev
# Set pkg-config to use static libraries # Set pkg-config to use static libraries
ENV PKG_CONFIG_ALLOW_STATIC=1 ENV PKG_CONFIG_ALLOW_STATIC=1

View File

@@ -2,10 +2,10 @@
# Maintainer: Joakim Hulthe <joakim@hulthe.net> # Maintainer: Joakim Hulthe <joakim@hulthe.net>
pkgname=mullvad-vpn-daemon pkgname=mullvad-vpn-daemon
pkgver=2026.1_git pkgver=2026.1_git
pkgrel=1 pkgrel=4
pkgdesc="Mullvad VPN system service" pkgdesc="Mullvad VPN system service"
url="https://mullvad.net/" url="https://mullvad.net/"
arch="$(uname -m)" arch="all"
license="GPL-3-or-later" license="GPL-3-or-later"
depends=" depends="
dbus dbus
@@ -42,9 +42,8 @@ prepare() {
build() { build() {
cd "$startdir/mullvadvpn-app" cd "$startdir/mullvadvpn-app"
# * Force the `stable` toolchain since it's installed in the container. # Specify `--target` so that the build artifacts ends up in target/<target>/release to
# We don't wan't to needlessly download rust while building. # avoid clashes with host system when running in a container with a mounted target folder.
# * Specify `--target` so that the final binary ends up in target/<target>/release.
cargo auditable build --release --locked \ cargo auditable build --release --locked \
--target "$CHOST" \ --target "$CHOST" \
-p mullvad-cli \ -p mullvad-cli \
@@ -56,7 +55,7 @@ build() {
check() { check() {
cd "$startdir/mullvadvpn-app" cd "$startdir/mullvadvpn-app"
cargo test --frozen cargo test --target "$CHOST" --frozen
} }
package() { package() {
@@ -66,9 +65,9 @@ package() {
install -m755 -D "$_cargo_target_dir/$CHOST/release/mullvad-daemon" \ install -m755 -D "$_cargo_target_dir/$CHOST/release/mullvad-daemon" \
"$pkgdir"/usr/bin/mullvad-daemon "$pkgdir"/usr/bin/mullvad-daemon
install -m755 -D "$_cargo_target_dir/$CHOST/release/mullvad-exclude" \ # mullvad-exclude requires setuid
install -m4755 -D "$_cargo_target_dir/$CHOST/release/mullvad-exclude" \
"$pkgdir"/usr/bin/mullvad-exclude "$pkgdir"/usr/bin/mullvad-exclude
chmod u+s "$pkgdir"/usr/bin/mullvad-exclude
install -m755 -D "$_cargo_target_dir/$CHOST/release/mullvad-problem-report" \ install -m755 -D "$_cargo_target_dir/$CHOST/release/mullvad-problem-report" \
"$pkgdir"/usr/bin/mullvad-problem-report "$pkgdir"/usr/bin/mullvad-problem-report
@@ -80,4 +79,7 @@ package() {
systemd() { systemd() {
install -m755 -D "$startdir/mullvadvpn-app/dist-assets/linux/mullvad-daemon.service" \ install -m755 -D "$startdir/mullvadvpn-app/dist-assets/linux/mullvad-daemon.service" \
"$subpkgdir"/usr/lib/systemd/system/mullvad-daemon.service "$subpkgdir"/usr/lib/systemd/system/mullvad-daemon.service
install -m755 -D "$startdir/mullvadvpn-app/dist-assets/linux/mullvad-early-boot-blocking.service" \
"$subpkgdir"/usr/lib/systemd/system/mullvad-early-boot-blocking.service
} }

View File

@@ -2,22 +2,23 @@
# Maintainer: Joakim Hulthe <joakim@hulthe.net> # Maintainer: Joakim Hulthe <joakim@hulthe.net>
pkgname=mullvad-vpn-slint pkgname=mullvad-vpn-slint
pkgver=2026.1_git pkgver=2026.1_git
pkgrel=1 pkgrel=4
pkgdesc="Mullvad VPN GUI" pkgdesc="Mullvad VPN GUI"
url="https://mullvad.net/" url="https://mullvad.net/"
arch="$(uname -m)" arch="all"
license="GPL-3-or-later" license="GPL-3-or-later"
# TODO: maybe depend on mullvad-vpn-daemon? # TODO: maybe depend on mullvad-vpn-daemon?
depends=" depends="
" "
makedepends=" makedepends="
build-base build-base
rustup cargo-auditable
musl-dev rust
pkgconfig pkgconfig
protobuf-dev protobuf-dev
fontconfig-dev fontconfig-dev
dbus-dev dbus-dev
wayland-dev
" "
checkdepends="" checkdepends=""
install="" install=""
@@ -28,28 +29,25 @@ options="net !check"
_cargo_target_dir="${CARGO_TARGET_DIR:-$startdir/mullvadvpn-app/target}" _cargo_target_dir="${CARGO_TARGET_DIR:-$startdir/mullvadvpn-app/target}"
build() { prepare() {
# rustup-init -y --default-toolchain stable default_prepare
source "$HOME/.cargo/env"
cd "$startdir/mullvadvpn-app" cd "$startdir/mullvadvpn-app"
cargo fetch --target "$CHOST" --locked
}
# rustup default stable build() {
local target="$(rustup +stable show active-toolchain | sed 's/^[^-]*-//' | grep -o "^[^ ]*")" cd "$startdir/mullvadvpn-app"
# * Force the `stable` toolchain since it's installed in the container. # Specify `--target` so that the final binary ends up in target/<target>/release.
# We don't wan't to needlessly download rust while building. cargo build --release --locked \
# * Specify `--target` so that the final binary ends up in target/<target>/release. --target "$CHOST" \
cargo +stable build --release --locked \
--target "$target" \
-p mullvad-slint -p mullvad-slint
} }
package() { package() {
local target="$(rustup +stable show active-toolchain | sed 's/^[^-]*-//' | grep -o "^[^ ]*")"
# Executable # Executable
install -m755 -D "$_cargo_target_dir/$target/release/mullvad-slint" \ install -m755 -D "$_cargo_target_dir/$CHOST/release/mullvad-slint" \
"$pkgdir"/usr/bin/mullvad-slint "$pkgdir"/usr/bin/mullvad-slint
# .desktop file # .desktop file