mullvad-vpn-slint: Enable tray-icon feature

This commit is contained in:
Joakim Hulthe
2026-03-30 10:19:22 +02:00
parent cf6a072724
commit 31c74fd178

View File

@@ -1,6 +1,6 @@
# Contributor:
# Maintainer: Joakim Hulthe <joakim@hulthe.net>
pkgname=mullvad-slint
pkgname=mullvad-vpn-slint
pkgver=2026.1_git
pkgrel=0
pkgdesc="Mullvad VPN GUI"
@@ -17,6 +17,7 @@ makedepends="
pkgconfig
protobuf-dev
fontconfig-dev
dbus-dev
"
checkdepends=""
install=""
@@ -25,6 +26,7 @@ source=""
builddir="$srcdir/"
options="net !check"
_cargo_target_dir="${CARGO_TARGET_DIR:-$startdir/mullvadvpn-app/target}"
build() {
# rustup-init -y --default-toolchain stable
@@ -37,22 +39,19 @@ build() {
# * Force the `stable` toolchain since it's installed in the container.
# We don't wan't to needlessly download rust while building.
# * Disable `tray-icon` feature. (TODO: figure out how to compile with libdbus)
# * Specify `--target` so that the final binary ends up in target/<target>/release.
cargo +stable build --release --locked \
--target "$target" \
--no-default-features --features map \
-p mullvad-slint
}
package() {
local cargo_target_dir="${CARGO_TARGET_DIR:-$startdir/mullvadvpn-app/target}"
local target="$(rustup +stable show active-toolchain | sed 's/^[^-]*-//' | grep -o "^[^ ]*")"
# TODO: .desktop
# TODO: icon
install -m755 -D "$cargo_target_dir/$target/release/$pkgname" \
"$pkgdir"/usr/bin/"$pkgname"
install -m755 -D "$_cargo_target_dir/$target/release/mullvad-slint" \
"$pkgdir"/usr/bin/mullvad-slint
}