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