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