Make APKBUILD follow style guidelines
This commit is contained in:
@@ -23,7 +23,6 @@ makedepends="
|
||||
libmnl-dev
|
||||
libnftnl-dev
|
||||
"
|
||||
checkdepends=""
|
||||
install="
|
||||
$pkgname.post-install
|
||||
$pkgname.pre-upgrade
|
||||
@@ -53,23 +52,23 @@ prepare() {
|
||||
}
|
||||
|
||||
build() {
|
||||
# Specify `--target` so that build artifacts will end up in target/<target>/release
|
||||
# This avoids clashes with host system when running in a container with a mounted target folder.
|
||||
# Specify `--target` so that build artifacts will be in target/<target>/release
|
||||
# This avoids clashes with host system when building in a container.
|
||||
|
||||
# Compile all binaries
|
||||
cargo auditable build --release --locked \
|
||||
--target "$CHOST" \
|
||||
-p mullvad-cli \
|
||||
-p mullvad-daemon \
|
||||
-p mullvad-exclude \
|
||||
-p mullvad-problem-report \
|
||||
-p mullvad-setup
|
||||
--target "$CHOST" \
|
||||
-p mullvad-cli \
|
||||
-p mullvad-daemon \
|
||||
-p mullvad-exclude \
|
||||
-p mullvad-problem-report \
|
||||
-p mullvad-setup
|
||||
|
||||
# Generate vendored relay list
|
||||
cargo run --locked \
|
||||
-p mullvad-api --bin relay_list \
|
||||
--target "$CHOST" \
|
||||
> "$builddir/relays.json"
|
||||
-p mullvad-api --bin relay_list \
|
||||
--target "$CHOST" \
|
||||
> "$builddir/relays.json"
|
||||
}
|
||||
|
||||
check() {
|
||||
@@ -89,7 +88,8 @@ package() {
|
||||
install -m755 -D "$_cargo_release_dir/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" \
|
||||
"$pkgdir/usr/share/mullvad-vpn/relays.json"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user