APKBUILD fixes
This commit is contained in:
@@ -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=2
|
pkgrel=3
|
||||||
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
|
||||||
|
|||||||
@@ -2,18 +2,18 @@
|
|||||||
# 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=2
|
pkgrel=3
|
||||||
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
|
||||||
@@ -28,28 +28,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
|
||||||
|
|||||||
Reference in New Issue
Block a user