Make APKBUILD follow style guidelines

This commit is contained in:
Joakim Hulthe
2026-04-23 14:16:48 +02:00
parent 5f355cdc1b
commit 81862a0b80

View File

@@ -23,7 +23,6 @@ makedepends="
libmnl-dev libmnl-dev
libnftnl-dev libnftnl-dev
" "
checkdepends=""
install=" install="
$pkgname.post-install $pkgname.post-install
$pkgname.pre-upgrade $pkgname.pre-upgrade
@@ -53,8 +52,8 @@ prepare() {
} }
build() { build() {
# Specify `--target` so that build artifacts will end up in target/<target>/release # Specify `--target` so that build artifacts will be in target/<target>/release
# This avoids clashes with host system when running in a container with a mounted target folder. # This avoids clashes with host system when building in a container.
# Compile all binaries # Compile all binaries
cargo auditable build --release --locked \ cargo auditable build --release --locked \
@@ -89,7 +88,8 @@ package() {
install -m755 -D "$_cargo_release_dir/mullvad-setup" \ install -m755 -D "$_cargo_release_dir/mullvad-setup" \
"$pkgdir/usr/bin/mullvad-setup" "$pkgdir/usr/bin/mullvad-setup"
# Bundle the vendored relay list. It's copied to /var/cache/mullvad-vpn/ by the post-* scripts. # Bundle the vendored relay list.
# It's copied to /var/cache/mullvad-vpn/ by the post-* scripts.
install -m644 -D "$builddir/relays.json" \ install -m644 -D "$builddir/relays.json" \
"$pkgdir/usr/share/mullvad-vpn/relays.json" "$pkgdir/usr/share/mullvad-vpn/relays.json"
} }