aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptrcnull <git@ptrcnull.me>2023-03-09 23:35:53 +0000
committerpsykose <alice@ayaya.dev>2023-03-10 00:35:53 +0100
commitfbcf4c4f1151f850017e5623c5236c3d4361ba4f (patch)
treefab716fbceb1524fb2e838c3e7c353fbf6cef22b
parent3faee0e02abb45ed6d4936823e5a888bd8ef6ddf (diff)
downloadaports-fbcf4c4f1151f850017e5623c5236c3d4361ba4f.tar.gz
aports-fbcf4c4f1151f850017e5623c5236c3d4361ba4f.tar.bz2
aports-fbcf4c4f1151f850017e5623c5236c3d4361ba4f.tar.xz
*/*: utilise sparse crates.io fetches
this is a million times faster new only in rust 1.68, and fails on older versions, but we have only latest in aports and don't support anything else, so it's okay.
-rw-r--r--community/aardvark-dns/APKBUILD2
-rw-r--r--community/acme-redirect/APKBUILD2
-rw-r--r--community/alacritty/APKBUILD1
-rw-r--r--community/amberol/APKBUILD1
-rw-r--r--community/apk-polkit-rs/APKBUILD2
-rw-r--r--community/arti/APKBUILD2
-rw-r--r--community/asfa/APKBUILD1
-rw-r--r--community/atuin/APKBUILD1
-rw-r--r--community/b3sum/APKBUILD2
-rw-r--r--community/bandwhich/APKBUILD2
-rw-r--r--community/bat/APKBUILD1
-rw-r--r--community/below/APKBUILD1
-rw-r--r--community/bottom/APKBUILD2
-rw-r--r--community/broot/APKBUILD1
-rw-r--r--community/bupstash/APKBUILD1
-rw-r--r--community/cargo-audit/APKBUILD2
-rw-r--r--community/cargo-bloat/APKBUILD2
-rw-r--r--community/cargo-c/APKBUILD1
-rw-r--r--community/cargo-edit/APKBUILD2
-rw-r--r--community/cargo-gra/APKBUILD2
-rw-r--r--community/cargo-license/APKBUILD2
-rw-r--r--community/cargo-make/APKBUILD2
-rw-r--r--community/cargo-nextest/APKBUILD2
-rw-r--r--community/cargo-outdated/APKBUILD1
-rw-r--r--community/cargo-watch/APKBUILD2
-rw-r--r--community/cbindgen/APKBUILD2
-rw-r--r--community/choose/APKBUILD2
-rw-r--r--community/clamav/APKBUILD2
-rw-r--r--community/connman-resolvconf/APKBUILD2
-rw-r--r--community/corrosion/APKBUILD2
-rw-r--r--community/csview/APKBUILD2
-rw-r--r--community/czkawka/APKBUILD2
-rw-r--r--community/delta/APKBUILD1
-rw-r--r--community/dfrs/APKBUILD2
-rw-r--r--community/diffsitter/APKBUILD2
-rw-r--r--community/difftastic/APKBUILD2
-rw-r--r--community/display-switch/APKBUILD2
-rw-r--r--community/docuum/APKBUILD2
-rw-r--r--community/dog/APKBUILD2
-rw-r--r--community/dssim/APKBUILD2
-rw-r--r--community/dua/APKBUILD2
-rw-r--r--community/duckscript/APKBUILD2
-rw-r--r--community/dummyhttp/APKBUILD2
-rw-r--r--community/dust/APKBUILD1
-rw-r--r--community/electrs/APKBUILD2
-rw-r--r--community/exa/APKBUILD2
-rw-r--r--community/fclones/APKBUILD2
-rw-r--r--community/fd/APKBUILD2
-rw-r--r--community/firefox-esr/APKBUILD1
-rw-r--r--community/firefox/APKBUILD1
-rw-r--r--community/fisher/APKBUILD2
-rw-r--r--community/fractal/APKBUILD2
-rw-r--r--community/garage/APKBUILD1
-rw-r--r--community/gfold/APKBUILD2
-rw-r--r--community/gifski/APKBUILD2
-rw-r--r--community/git-branchless/APKBUILD1
-rw-r--r--community/git-interactive-rebase-tool/APKBUILD1
-rw-r--r--community/git-metafile/APKBUILD2
-rw-r--r--community/git-warp-time/APKBUILD2
-rw-r--r--community/gitui/APKBUILD2
-rw-r--r--community/gnome-authenticator/APKBUILD2
-rw-r--r--community/gnome-podcasts/APKBUILD2
-rw-r--r--community/gnome-shortwave/APKBUILD2
-rw-r--r--community/gnome-tour/APKBUILD2
-rw-r--r--community/greetd-tuigreet/APKBUILD1
-rw-r--r--community/greetd/APKBUILD1
-rw-r--r--community/handlr/APKBUILD1
-rw-r--r--community/helix/APKBUILD2
-rw-r--r--community/hexyl/APKBUILD2
-rw-r--r--community/himalaya/APKBUILD2
-rw-r--r--community/hkdm/APKBUILD2
-rw-r--r--community/httm/APKBUILD2
-rw-r--r--community/hyperfine/APKBUILD1
-rw-r--r--community/ikona/APKBUILD2
-rw-r--r--community/image-roll/APKBUILD2
-rw-r--r--community/ion-shell/APKBUILD2
-rw-r--r--community/jless/APKBUILD2
-rw-r--r--community/jql/APKBUILD2
-rw-r--r--community/just/APKBUILD1
-rw-r--r--community/karlender/APKBUILD2
-rw-r--r--community/keepassxc-proxy-static/APKBUILD1
-rw-r--r--community/kibi/APKBUILD2
-rw-r--r--community/kmon/APKBUILD2
-rw-r--r--community/kooha/APKBUILD1
-rw-r--r--community/krapslog/APKBUILD2
-rw-r--r--community/lfs/APKBUILD2
-rw-r--r--community/libimagequant/APKBUILD2
-rw-r--r--community/libopenraw/APKBUILD2
-rw-r--r--community/librsvg/APKBUILD1
-rw-r--r--community/lightdm-mobile-greeter/APKBUILD2
-rw-r--r--community/mandown/APKBUILD2
-rw-r--r--community/maturin/APKBUILD2
-rw-r--r--community/mcfly/APKBUILD1
-rw-r--r--community/mdbook/APKBUILD1
-rw-r--r--community/meilisearch/APKBUILD2
-rw-r--r--community/mercurial/APKBUILD2
-rw-r--r--community/miniserve/APKBUILD2
-rw-r--r--community/monolith/APKBUILD2
-rw-r--r--community/mozjs102/APKBUILD2
-rw-r--r--community/mprocs/APKBUILD1
-rw-r--r--community/mqttui/APKBUILD2
-rw-r--r--community/ncspot/APKBUILD2
-rw-r--r--community/netavark/APKBUILD2
-rw-r--r--community/newsboat/APKBUILD2
-rw-r--r--community/newsflash/APKBUILD2
-rw-r--r--community/obfuscate/APKBUILD2
-rw-r--r--community/onefetch/APKBUILD1
-rw-r--r--community/oxipng/APKBUILD2
-rw-r--r--community/peep/APKBUILD1
-rw-r--r--community/piow/APKBUILD1
-rw-r--r--community/pipr/APKBUILD1
-rw-r--r--community/pngquant/APKBUILD2
-rw-r--r--community/procs/APKBUILD1
-rw-r--r--community/prometheus-wireguard-exporter/APKBUILD2
-rw-r--r--community/pueue/APKBUILD2
-rw-r--r--community/purism-ectool/APKBUILD2
-rw-r--r--community/py3-adblock/APKBUILD1
-rw-r--r--community/py3-orjson/APKBUILD2
-rw-r--r--community/py3-setuptools-rust/APKBUILD1
-rw-r--r--community/py3-watchfiles/APKBUILD2
-rw-r--r--community/rbspy/APKBUILD2
-rw-r--r--community/rebuilderd/APKBUILD2
-rw-r--r--community/ripgrep/APKBUILD1
-rw-r--r--community/rust-analyzer/APKBUILD2
-rw-r--r--community/rustup/APKBUILD1
-rw-r--r--community/sad/APKBUILD2
-rw-r--r--community/sccache/APKBUILD2
-rw-r--r--community/sheldon/APKBUILD1
-rw-r--r--community/skim/APKBUILD2
-rw-r--r--community/sn0int/APKBUILD2
-rw-r--r--community/sniffglue/APKBUILD2
-rw-r--r--community/songrec/APKBUILD2
-rw-r--r--community/spot/APKBUILD2
-rw-r--r--community/squeekboard/APKBUILD2
-rw-r--r--community/stargazer-gmi/APKBUILD2
-rw-r--r--community/starship/APKBUILD2
-rw-r--r--community/stylua/APKBUILD2
-rw-r--r--community/suricata/APKBUILD2
-rw-r--r--community/swayr/APKBUILD1
-rw-r--r--community/swayrbar/APKBUILD1
-rw-r--r--community/taplo/APKBUILD2
-rw-r--r--community/tau/APKBUILD2
-rw-r--r--community/tectonic/APKBUILD2
-rw-r--r--community/thin-provisioning-tools/APKBUILD2
-rw-r--r--community/thunderbird/APKBUILD2
-rw-r--r--community/tokei/APKBUILD2
-rw-r--r--community/tree-sitter/APKBUILD2
-rw-r--r--community/tuc/APKBUILD2
-rw-r--r--community/viu/APKBUILD2
-rw-r--r--community/warp/APKBUILD2
-rw-r--r--community/wasm-pack/APKBUILD1
-rw-r--r--community/wayshot/APKBUILD2
-rw-r--r--community/websocat/APKBUILD2
-rw-r--r--community/wezterm/APKBUILD1
-rw-r--r--community/wldash/APKBUILD2
-rw-r--r--community/wluma/APKBUILD2
-rw-r--r--community/xh/APKBUILD2
-rw-r--r--community/xsv/APKBUILD1
-rw-r--r--community/yj/APKBUILD2
-rw-r--r--community/yofi/APKBUILD2
-rw-r--r--community/zellij/APKBUILD2
-rw-r--r--community/zenith/APKBUILD2
-rw-r--r--community/zerotier-one/APKBUILD2
-rw-r--r--community/zola/APKBUILD1
-rw-r--r--community/zoxide/APKBUILD2
-rw-r--r--testing/acmed/APKBUILD2
-rw-r--r--testing/android-apkeep/APKBUILD2
-rw-r--r--testing/apmpkg/APKBUILD2
-rw-r--r--testing/asciinema-rs/APKBUILD2
-rw-r--r--testing/asuran-cli/APKBUILD1
-rw-r--r--testing/authenticator-rs/APKBUILD2
-rw-r--r--testing/bartib/APKBUILD2
-rw-r--r--testing/beancount-language-server/APKBUILD2
-rw-r--r--testing/boa-cli/APKBUILD2
-rw-r--r--testing/bore/APKBUILD2
-rw-r--r--testing/cargo-deny/APKBUILD2
-rw-r--r--testing/castor/APKBUILD2
-rw-r--r--testing/chim/APKBUILD2
-rw-r--r--testing/cicada/APKBUILD2
-rw-r--r--testing/cinny/APKBUILD1
-rw-r--r--testing/conduit/APKBUILD2
-rw-r--r--testing/desed/APKBUILD2
-rw-r--r--testing/diskonaut/APKBUILD2
-rw-r--r--testing/diskus/APKBUILD2
-rw-r--r--testing/dotenv-linter/APKBUILD2
-rw-r--r--testing/dum/APKBUILD2
-rw-r--r--testing/electron-tasje/APKBUILD2
-rw-r--r--testing/element-desktop/APKBUILD1
-rw-r--r--testing/elfx86exts/APKBUILD2
-rw-r--r--testing/eva/APKBUILD2
-rw-r--r--testing/ffsend/APKBUILD2
-rw-r--r--testing/filite/APKBUILD2
-rw-r--r--testing/firecracker/APKBUILD2
-rw-r--r--testing/firefox-developer-edition/APKBUILD1
-rw-r--r--testing/flare/APKBUILD2
-rw-r--r--testing/geckodriver/APKBUILD2
-rw-r--r--testing/geopard/APKBUILD2
-rw-r--r--testing/gitoxide/APKBUILD2
-rw-r--r--testing/gleam/APKBUILD2
-rw-r--r--testing/gnome-metronome/APKBUILD2
-rw-r--r--testing/gobang/APKBUILD2
-rw-r--r--testing/gpg-tui/APKBUILD2
-rw-r--r--testing/gping/APKBUILD2
-rw-r--r--testing/grcov/APKBUILD2
-rw-r--r--testing/greetd-wlgreet/APKBUILD1
-rw-r--r--testing/grpc-health-check/APKBUILD2
-rw-r--r--testing/gst-plugins-rs/APKBUILD1
-rw-r--r--testing/habitctl/APKBUILD2
-rw-r--r--testing/helvum/APKBUILD2
-rw-r--r--testing/hex/APKBUILD2
-rw-r--r--testing/horust/APKBUILD2
-rw-r--r--testing/htmlq/APKBUILD2
-rw-r--r--testing/hwatch/APKBUILD2
-rw-r--r--testing/hyperlink/APKBUILD2
-rw-r--r--testing/i3status-rust/APKBUILD2
-rw-r--r--testing/imageflow/APKBUILD2
-rw-r--r--testing/innernet/APKBUILD2
-rw-r--r--testing/jaq/APKBUILD2
-rw-r--r--testing/java-libsignal-client/APKBUILD2
-rw-r--r--testing/jp/APKBUILD2
-rw-r--r--testing/jrsonnet-cli/APKBUILD2
-rw-r--r--testing/kak-lsp/APKBUILD2
-rw-r--r--testing/kbs2/APKBUILD2
-rw-r--r--testing/lapce/APKBUILD2
-rw-r--r--testing/laze/APKBUILD2
-rw-r--r--testing/librespot/APKBUILD2
-rw-r--r--testing/lighthouse/APKBUILD1
-rw-r--r--testing/lsd/APKBUILD2
-rw-r--r--testing/lumins/APKBUILD2
-rw-r--r--testing/macchina/APKBUILD2
-rw-r--r--testing/mdcat/APKBUILD2
-rw-r--r--testing/navi/APKBUILD1
-rw-r--r--testing/nitrocli/APKBUILD2
-rw-r--r--testing/nixpacks/APKBUILD2
-rw-r--r--testing/nsh/APKBUILD2
-rw-r--r--testing/nushell/APKBUILD2
-rw-r--r--testing/ouch/APKBUILD2
-rw-r--r--testing/pastel/APKBUILD2
-rw-r--r--testing/pidif/APKBUILD3
-rw-r--r--testing/pijul/APKBUILD1
-rw-r--r--testing/piping-server/APKBUILD2
-rw-r--r--testing/please/APKBUILD2
-rw-r--r--testing/pulumi-watch/APKBUILD2
-rw-r--r--testing/pw-volume/APKBUILD1
-rw-r--r--testing/py-spy/APKBUILD2
-rw-r--r--testing/py3-mitmproxy-wireguard/APKBUILD2
-rw-r--r--testing/py3-tokenizers/APKBUILD2
-rw-r--r--testing/rage/APKBUILD2
-rw-r--r--testing/rathole/APKBUILD2
-rw-r--r--testing/rav1e/APKBUILD1
-rw-r--r--testing/rbw/APKBUILD2
-rw-r--r--testing/rdedup/APKBUILD2
-rwxr-xr-xtesting/read-it-later/APKBUILD2
-rw-r--r--testing/rezolus/APKBUILD2
-rw-r--r--testing/riemann-cli/APKBUILD2
-rw-r--r--testing/ripasso-cursive/APKBUILD2
-rw-r--r--testing/rome/APKBUILD2
-rw-r--r--testing/rosenpass/APKBUILD2
-rw-r--r--testing/rpg-cli/APKBUILD2
-rw-r--r--testing/rss-email/APKBUILD2
-rw-r--r--testing/ruff/APKBUILD1
-rw-r--r--testing/rust-bindgen/APKBUILD2
-rw-r--r--testing/rust-script/APKBUILD2
-rw-r--r--testing/rustdesk-server/APKBUILD2
-rw-r--r--testing/rustic/APKBUILD2
-rw-r--r--testing/rustscan/APKBUILD2
-rw-r--r--testing/scryer-prolog/APKBUILD2
-rw-r--r--testing/sd/APKBUILD1
-rw-r--r--testing/sequoia-chameleon-gnupg/APKBUILD2
-rw-r--r--testing/sequoia-sqv/APKBUILD2
-rw-r--r--testing/shotman/APKBUILD2
-rw-r--r--testing/signal-desktop/APKBUILD1
-rw-r--r--testing/so/APKBUILD2
-rw-r--r--testing/solanum/APKBUILD2
-rw-r--r--testing/spotify-player/APKBUILD2
-rw-r--r--testing/spotify-tui/APKBUILD2
-rw-r--r--testing/spotifyd/APKBUILD2
-rw-r--r--testing/svgbob/APKBUILD2
-rw-r--r--testing/swayhide/APKBUILD2
-rw-r--r--testing/swc/APKBUILD2
-rw-r--r--testing/swhkd/APKBUILD2
-rw-r--r--testing/swww/APKBUILD2
-rw-r--r--testing/synapse-bt/APKBUILD2
-rw-r--r--testing/systeroid/APKBUILD2
-rw-r--r--testing/tauri-cli/APKBUILD2
-rw-r--r--testing/tealdeer/APKBUILD2
-rw-r--r--testing/teapot-tools/APKBUILD2
-rw-r--r--testing/texlab/APKBUILD1
-rw-r--r--testing/topgrade/APKBUILD2
-rw-r--r--testing/twiggy/APKBUILD2
-rw-r--r--testing/udpt/APKBUILD2
-rw-r--r--testing/uutils-coreutils/APKBUILD2
-rw-r--r--testing/vaultwarden/APKBUILD2
-rw-r--r--testing/verco/APKBUILD2
-rw-r--r--testing/video-trimmer/APKBUILD2
-rw-r--r--testing/vivid/APKBUILD1
-rw-r--r--testing/vocage/APKBUILD2
-rw-r--r--testing/wasmtime/APKBUILD2
-rw-r--r--testing/watchexec/APKBUILD2
-rw-r--r--testing/waylevel/APKBUILD1
-rw-r--r--testing/weggli/APKBUILD2
-rw-r--r--testing/wk-adblock/APKBUILD1
-rw-r--r--testing/wpaperd/APKBUILD2
-rw-r--r--testing/xplr/APKBUILD2
-rw-r--r--testing/youki/APKBUILD2
-rw-r--r--testing/zkgroup/APKBUILD2
306 files changed, 549 insertions, 2 deletions
diff --git a/community/aardvark-dns/APKBUILD b/community/aardvark-dns/APKBUILD
index 353b12ea0d1..0aeebee336d 100644
--- a/community/aardvark-dns/APKBUILD
+++ b/community/aardvark-dns/APKBUILD
@@ -12,6 +12,8 @@ makedepends="cargo"
source="https://github.com/containers/aardvark-dns/archive/v$pkgver/aardvark-dns-$pkgver.tar.gz"
options="net !check" # no test suite
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
make
}
diff --git a/community/acme-redirect/APKBUILD b/community/acme-redirect/APKBUILD
index 8a1adb4cb0c..e26c7df56bd 100644
--- a/community/acme-redirect/APKBUILD
+++ b/community/acme-redirect/APKBUILD
@@ -23,6 +23,8 @@ install="$pkgname.pre-install"
options="net"
source="$pkgname-$pkgver.tar.gz::https://github.com/kpcyrd/acme-redirect/archive/v$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cargo build --release --locked
diff --git a/community/alacritty/APKBUILD b/community/alacritty/APKBUILD
index 78f4655ba64..6306729393f 100644
--- a/community/alacritty/APKBUILD
+++ b/community/alacritty/APKBUILD
@@ -29,6 +29,7 @@ options="net"
source="$pkgname-$pkgver.tar.gz::https://github.com/alacritty/alacritty/archive/refs/tags/v$pkgver.tar.gz
"
export CARGO_HOME="$srcdir"/cargo
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
build() {
cargo build --release --verbose
diff --git a/community/amberol/APKBUILD b/community/amberol/APKBUILD
index 4755c622f31..8b3f88c03f0 100644
--- a/community/amberol/APKBUILD
+++ b/community/amberol/APKBUILD
@@ -38,6 +38,7 @@ options="net" # needed for downloading dependencies
export CARGO_FEATURE_USE_SYSTEM_LIBS=1 # gmp-mpfr-sys links to gmp-dev and mpfr-dev
export CARGO_NET_OFFLINE="true"
export CARGO_HOME="$srcdir/cargo"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/apk-polkit-rs/APKBUILD b/community/apk-polkit-rs/APKBUILD
index b587c6f62d1..660a420564c 100644
--- a/community/apk-polkit-rs/APKBUILD
+++ b/community/apk-polkit-rs/APKBUILD
@@ -23,6 +23,8 @@ riscv64)
;;
esac
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/arti/APKBUILD b/community/arti/APKBUILD
index b7098a1e22b..c4d4ff00991 100644
--- a/community/arti/APKBUILD
+++ b/community/arti/APKBUILD
@@ -13,6 +13,8 @@ subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://gitlab.torproject.org/tpo/core/arti/-/archive/arti-v$pkgver/arti-arti-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgname-v$pkgver"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
diff --git a/community/asfa/APKBUILD b/community/asfa/APKBUILD
index d23bbd6d825..3ffc1f8bb4d 100644
--- a/community/asfa/APKBUILD
+++ b/community/asfa/APKBUILD
@@ -20,6 +20,7 @@ options="!check" # tests use docker
export CARGO_PROFILE_RELEASE_OPT_LEVEL="z"
export LIBSSH2_SYS_USE_PKG_CONFIG=1 # use system libssh2
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/atuin/APKBUILD b/community/atuin/APKBUILD
index ca28e04ec90..c90565ab547 100644
--- a/community/atuin/APKBUILD
+++ b/community/atuin/APKBUILD
@@ -47,6 +47,7 @@ source="https://github.com/ellie/atuin/archive/v$pkgver/atuin-$pkgver.tar.gz
options="!check" # FIXME: some tests are broken
export SODIUM_USE_PKG_CONFIG=1
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
local sqlx_ver
diff --git a/community/b3sum/APKBUILD b/community/b3sum/APKBUILD
index 72270dda9b6..5bde39c49a8 100644
--- a/community/b3sum/APKBUILD
+++ b/community/b3sum/APKBUILD
@@ -20,6 +20,8 @@ aarch64|armv7)
;;
esac
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/bandwhich/APKBUILD b/community/bandwhich/APKBUILD
index e83ec557e68..4b03601ca64 100644
--- a/community/bandwhich/APKBUILD
+++ b/community/bandwhich/APKBUILD
@@ -13,6 +13,8 @@ source="https://github.com/imsnif/bandwhich/archive/$pkgver/$pkgname-$pkgver.tar
update-socket2.patch
"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/bat/APKBUILD b/community/bat/APKBUILD
index 6d73c90226d..0514f3b6024 100644
--- a/community/bat/APKBUILD
+++ b/community/bat/APKBUILD
@@ -31,6 +31,7 @@ source="https://github.com/sharkdp/bat/archive/v$pkgver/bat-$pkgver.tar.gz"
export CARGO_PROFILE_RELEASE_OPT_LEVEL="z"
export RUSTONIG_DYNAMIC_LIBONIG=1 # use system libonig
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/below/APKBUILD b/community/below/APKBUILD
index b5ec04ee1a4..206e6f5571b 100644
--- a/community/below/APKBUILD
+++ b/community/below/APKBUILD
@@ -40,6 +40,7 @@ _cargo_opts="--frozen --features no-vendor"
# below may not work correctly with panic=abort.
export CARGO_PROFILE_RELEASE_PANIC="unwind"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/bottom/APKBUILD b/community/bottom/APKBUILD
index c7cacbfd7f5..a36b578a65b 100644
--- a/community/bottom/APKBUILD
+++ b/community/bottom/APKBUILD
@@ -16,6 +16,8 @@ subpackages="
"
source="https://github.com/ClementTsang/bottom/archive/$pkgver/bottom-$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
diff --git a/community/broot/APKBUILD b/community/broot/APKBUILD
index cffa9668bb7..510aaa15d77 100644
--- a/community/broot/APKBUILD
+++ b/community/broot/APKBUILD
@@ -26,6 +26,7 @@ source="https://github.com/Canop/broot/archive/v$pkgver/broot-$pkgver.tar.gz
"
export CARGO_PROFILE_RELEASE_OPT_LEVEL=2
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/bupstash/APKBUILD b/community/bupstash/APKBUILD
index 4079493018c..30e792033aa 100644
--- a/community/bupstash/APKBUILD
+++ b/community/bupstash/APKBUILD
@@ -11,6 +11,7 @@ makedepends="rust cargo libsodium-dev"
options="net"
source="$pkgname-$pkgver.tar.gz::https://github.com/andrewchambers/bupstash/archive/v$pkgver.tar.gz"
export CARGO_HOME="$srcdir"/cargo
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
build() {
cargo build --release --verbose
diff --git a/community/cargo-audit/APKBUILD b/community/cargo-audit/APKBUILD
index bc197a5d750..03f673ad55c 100644
--- a/community/cargo-audit/APKBUILD
+++ b/community/cargo-audit/APKBUILD
@@ -15,6 +15,8 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/RustSec/cargo-audit/archive/
builddir="$srcdir/rustsec-$pkgname-v$pkgver/$pkgname"
options="!check" # requires running binaries prebuilt against glibc as part of the tests and fails
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/cargo-bloat/APKBUILD b/community/cargo-bloat/APKBUILD
index 5985412aaaf..224df1a3784 100644
--- a/community/cargo-bloat/APKBUILD
+++ b/community/cargo-bloat/APKBUILD
@@ -13,6 +13,8 @@ source="https://github.com/RazrFalcon/cargo-bloat/archive/v$pkgver/$pkgname-$pkg
"
_cargo_opts="--frozen --features regex-filter"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/cargo-c/APKBUILD b/community/cargo-c/APKBUILD
index 0a22306c62e..d0e24463b86 100644
--- a/community/cargo-c/APKBUILD
+++ b/community/cargo-c/APKBUILD
@@ -29,6 +29,7 @@ esac
export LIBSSH2_SYS_USE_PKG_CONFIG=1
export DEP_NGHTTP2_ROOT=/usr
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/cargo-edit/APKBUILD b/community/cargo-edit/APKBUILD
index b5b0015c0b7..14c152bfb93 100644
--- a/community/cargo-edit/APKBUILD
+++ b/community/cargo-edit/APKBUILD
@@ -23,6 +23,8 @@ export LIBSSH2_SYS_USE_PKG_CONFIG=1 # use system libssh2
# Exclude vendored-libgit2 feature.
_cargo_opts="--frozen --no-default-features --features add,rm,upgrade,set-version"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/cargo-gra/APKBUILD b/community/cargo-gra/APKBUILD
index a92e66fa4c9..d8767594cb3 100644
--- a/community/cargo-gra/APKBUILD
+++ b/community/cargo-gra/APKBUILD
@@ -14,6 +14,8 @@ options="!check" # Tests fail
[ "$CARCH" = "riscv64" ] && options="$options textrels"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/cargo-license/APKBUILD b/community/cargo-license/APKBUILD
index 6b5de1a8160..ee693b3f2f8 100644
--- a/community/cargo-license/APKBUILD
+++ b/community/cargo-license/APKBUILD
@@ -9,6 +9,8 @@ license="MIT"
makedepends="cargo"
source="$pkgname-$pkgver.tar.gz::https://crates.io/api/v1/crates/cargo-license/$pkgver/download"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/cargo-make/APKBUILD b/community/cargo-make/APKBUILD
index c6e2db8e540..d35990972fb 100644
--- a/community/cargo-make/APKBUILD
+++ b/community/cargo-make/APKBUILD
@@ -16,6 +16,8 @@ options="!check" # FIXME: some tests are broken
_cargo_opts="--frozen --no-default-features --features tls-native"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/cargo-nextest/APKBUILD b/community/cargo-nextest/APKBUILD
index bf0ba156663..58f6813f354 100644
--- a/community/cargo-nextest/APKBUILD
+++ b/community/cargo-nextest/APKBUILD
@@ -23,6 +23,8 @@ esac
_cargo_opts="--frozen --no-default-features --features default-no-update"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/cargo-outdated/APKBUILD b/community/cargo-outdated/APKBUILD
index 21b0af6b071..bb11dd5b107 100644
--- a/community/cargo-outdated/APKBUILD
+++ b/community/cargo-outdated/APKBUILD
@@ -21,6 +21,7 @@ options="net"
source="$pkgname-$pkgver.tar.gz::https://github.com/kbknapp/cargo-outdated/archive/v$pkgver.tar.gz"
export LIBSSH2_SYS_USE_PKG_CONFIG=1
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/cargo-watch/APKBUILD b/community/cargo-watch/APKBUILD
index bcfb85891ef..974efd3f988 100644
--- a/community/cargo-watch/APKBUILD
+++ b/community/cargo-watch/APKBUILD
@@ -16,6 +16,8 @@ subpackages="
options="net"
source="$pkgname-$pkgver.tar.gz::https://github.com/watchexec/cargo-watch/archive/v$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/cbindgen/APKBUILD b/community/cbindgen/APKBUILD
index 9d817183bfb..693c4edbe50 100644
--- a/community/cbindgen/APKBUILD
+++ b/community/cbindgen/APKBUILD
@@ -20,6 +20,8 @@ if [ "$CARCH" = "riscv64" ]; then
options="$options textrels"
fi
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/choose/APKBUILD b/community/choose/APKBUILD
index 1af017e9ee2..7c3a2e4c7c1 100644
--- a/community/choose/APKBUILD
+++ b/community/choose/APKBUILD
@@ -10,6 +10,8 @@ license="GPL-3.0-or-later"
makedepends="cargo"
source="https://github.com/theryangeary/choose/archive/v$pkgver/choose-$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/clamav/APKBUILD b/community/clamav/APKBUILD
index 16c38c445b7..5294c751100 100644
--- a/community/clamav/APKBUILD
+++ b/community/clamav/APKBUILD
@@ -120,6 +120,8 @@ esac
# - CVE-2018-14681
# - CVE-2018-14682
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=None \
diff --git a/community/connman-resolvconf/APKBUILD b/community/connman-resolvconf/APKBUILD
index 6f0198bedfd..c6b60498e17 100644
--- a/community/connman-resolvconf/APKBUILD
+++ b/community/connman-resolvconf/APKBUILD
@@ -17,6 +17,8 @@ subpackages="$pkgname-openrc"
source="https://github.com/jirutka/connman-resolvconf/archive/v$pkgver/connman-resolvconf-$pkgver.tar.gz"
options="!check" # no tests provided
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/corrosion/APKBUILD b/community/corrosion/APKBUILD
index f00df08001a..44c470b16c1 100644
--- a/community/corrosion/APKBUILD
+++ b/community/corrosion/APKBUILD
@@ -17,6 +17,8 @@ makedepends="samurai"
source="https://github.com/AndrewGaspar/corrosion/archive/v$pkgver/corrosion-$pkgver.tar.gz"
options="net" # Required to download Rust dependencies
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=MinSizeRel \
diff --git a/community/csview/APKBUILD b/community/csview/APKBUILD
index fd244716897..ca21fefbff7 100644
--- a/community/csview/APKBUILD
+++ b/community/csview/APKBUILD
@@ -15,6 +15,8 @@ subpackages="
"
source="https://github.com/wfxr/csview/archive/v$pkgver/csview-$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/czkawka/APKBUILD b/community/czkawka/APKBUILD
index 2d3a1f30172..b123165771f 100644
--- a/community/czkawka/APKBUILD
+++ b/community/czkawka/APKBUILD
@@ -18,6 +18,8 @@ source="https://github.com/qarmin/czkawka/archive/$pkgver/$pkgname-$pkgver.tar.g
minimize-size.patch
"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/delta/APKBUILD b/community/delta/APKBUILD
index d0e1d8c12ef..becec64c878 100644
--- a/community/delta/APKBUILD
+++ b/community/delta/APKBUILD
@@ -19,6 +19,7 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/dandavison/delta/archive/ref
# - CVE-2022-24713
export RUSTONIG_SYSTEM_LIBONIG="true"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/dfrs/APKBUILD b/community/dfrs/APKBUILD
index 95f490e089b..06bba81cc82 100644
--- a/community/dfrs/APKBUILD
+++ b/community/dfrs/APKBUILD
@@ -21,6 +21,8 @@ subpackages="$pkgname-doc
options="net"
source="$pkgname-$pkgver.tar.gz::https://github.com/anthraxx/dfrs/archive/$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
make
}
diff --git a/community/diffsitter/APKBUILD b/community/diffsitter/APKBUILD
index 90ffa105ad8..5e91108c7f2 100644
--- a/community/diffsitter/APKBUILD
+++ b/community/diffsitter/APKBUILD
@@ -24,6 +24,8 @@ source="https://github.com/afnanenayet/diffsitter/archive/v$pkgver/$pkgname-$pkg
_cargo_opts="--frozen --no-default-features --features dynamic-grammar-libs"
_binname=$pkgname
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/difftastic/APKBUILD b/community/difftastic/APKBUILD
index 5346591d7b6..eb67aadd65e 100644
--- a/community/difftastic/APKBUILD
+++ b/community/difftastic/APKBUILD
@@ -10,6 +10,8 @@ arch="all !s390x !riscv64" # blocked by rust/cargo
makedepends="cargo openssl-dev"
source="https://github.com/Wilfred/difftastic/archive/$pkgver/difftastic-$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
diff --git a/community/display-switch/APKBUILD b/community/display-switch/APKBUILD
index f4aa6333950..3fa3e3f721b 100644
--- a/community/display-switch/APKBUILD
+++ b/community/display-switch/APKBUILD
@@ -14,6 +14,8 @@ source="
50-i2c.rules
"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cargo build --release --locked
}
diff --git a/community/docuum/APKBUILD b/community/docuum/APKBUILD
index bae38f7b3f8..686f5e329bb 100644
--- a/community/docuum/APKBUILD
+++ b/community/docuum/APKBUILD
@@ -18,6 +18,8 @@ source="https://github.com/stepchowfun/docuum/archive/v$pkgver/docuum-$pkgver.ta
$pkgname.logrotate
"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/dog/APKBUILD b/community/dog/APKBUILD
index 903b560f84d..53e72bfc59b 100644
--- a/community/dog/APKBUILD
+++ b/community/dog/APKBUILD
@@ -13,6 +13,8 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/ogham/dog/archive/v$pkgver.t
openssl3.patch
"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/dssim/APKBUILD b/community/dssim/APKBUILD
index f85a6e08eaa..b228f687e8f 100644
--- a/community/dssim/APKBUILD
+++ b/community/dssim/APKBUILD
@@ -11,6 +11,8 @@ license="AGPL-3.0-only"
makedepends="cargo"
source="$pkgname-$pkgver.tar.gz::https://github.com/kornelski/dssim/archive/$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cargo build --release
}
diff --git a/community/dua/APKBUILD b/community/dua/APKBUILD
index 19515eaa507..37e73f22fad 100644
--- a/community/dua/APKBUILD
+++ b/community/dua/APKBUILD
@@ -11,6 +11,8 @@ makedepends="cargo"
source="https://github.com/Byron/dua-cli/archive/v$pkgver/dua-$pkgver.tar.gz"
builddir="$srcdir/dua-cli-$pkgver"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/duckscript/APKBUILD b/community/duckscript/APKBUILD
index c71c114cc8c..256daffa142 100644
--- a/community/duckscript/APKBUILD
+++ b/community/duckscript/APKBUILD
@@ -18,6 +18,8 @@ esac
_cargo_opts="--frozen --no-default-features --features tls-native"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/dummyhttp/APKBUILD b/community/dummyhttp/APKBUILD
index e105e8fe0af..9ea51b4e71b 100644
--- a/community/dummyhttp/APKBUILD
+++ b/community/dummyhttp/APKBUILD
@@ -17,6 +17,8 @@ subpackages="
"
source="https://github.com/svenstaro/dummyhttp/archive/v$pkgver/dummyhttp-$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/dust/APKBUILD b/community/dust/APKBUILD
index 83ba1948d5f..6da0d37c6bd 100644
--- a/community/dust/APKBUILD
+++ b/community/dust/APKBUILD
@@ -18,6 +18,7 @@ case "$CARCH" in
esac
export CARGO_PROFILE_RELEASE_OPT_LEVEL="z"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/electrs/APKBUILD b/community/electrs/APKBUILD
index 2efbd11f4d7..1b0c3f9ed44 100644
--- a/community/electrs/APKBUILD
+++ b/community/electrs/APKBUILD
@@ -14,6 +14,8 @@ source="https://github.com/romanz/electrs/archive/v$pkgver/electrs-$pkgver.tar.g
12-db.rs.patch
"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
ROCKSDB_INCLUDE_DIR=/usr/include ROCKSDB_LIB_DIR=/usr/lib cargo build --all --features "metrics_process" --release --locked
}
diff --git a/community/exa/APKBUILD b/community/exa/APKBUILD
index 7c96bebe1de..0d28abfdd1f 100644
--- a/community/exa/APKBUILD
+++ b/community/exa/APKBUILD
@@ -18,6 +18,8 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/ogham/exa/archive/v$pkgver.t
minimize-size.patch
"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/fclones/APKBUILD b/community/fclones/APKBUILD
index 442c674cf5a..03ec87d39e6 100644
--- a/community/fclones/APKBUILD
+++ b/community/fclones/APKBUILD
@@ -14,6 +14,8 @@ source="https://github.com/pkolaczk/fclones/archive/v$pkgver/fclones-$pkgver.tar
"
options="net"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/fd/APKBUILD b/community/fd/APKBUILD
index 604952faae4..b86a8218e30 100644
--- a/community/fd/APKBUILD
+++ b/community/fd/APKBUILD
@@ -25,6 +25,8 @@ case "$CARCH" in
riscv64) options="$options textrels" ;;
esac
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/firefox-esr/APKBUILD b/community/firefox-esr/APKBUILD
index 4aa180032ba..cc75af9819c 100644
--- a/community/firefox-esr/APKBUILD
+++ b/community/firefox-esr/APKBUILD
@@ -453,6 +453,7 @@ unset CARGO_PROFILE_RELEASE_LTO
export CFLAGS="$CFLAGS -O2"
export CXXFLAGS="$CXXFLAGS -O2"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/firefox/APKBUILD b/community/firefox/APKBUILD
index 448dac25057..d540dbc2d20 100644
--- a/community/firefox/APKBUILD
+++ b/community/firefox/APKBUILD
@@ -606,6 +606,7 @@ build() {
export CFLAGS="$CFLAGS -O2"
export CXXFLAGS="$CXXFLAGS -O2"
+ export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
case "$CARCH" in
aarch64|x86_64)
diff --git a/community/fisher/APKBUILD b/community/fisher/APKBUILD
index 35c6eaad4f5..374ab45c5eb 100644
--- a/community/fisher/APKBUILD
+++ b/community/fisher/APKBUILD
@@ -19,6 +19,8 @@ source="https://github.com/pietroalbini/$pkgname/archive/v$pkgver/$pkgname-$pkgv
"
options="!check" # problems with test dependencies
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/fractal/APKBUILD b/community/fractal/APKBUILD
index 90e999f0d53..4e1e14cec78 100644
--- a/community/fractal/APKBUILD
+++ b/community/fractal/APKBUILD
@@ -41,6 +41,8 @@ case "$CARCH" in
;;
esac
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
abuild-meson . output
meson compile ${JOBS:+-j ${JOBS}} -C output
diff --git a/community/garage/APKBUILD b/community/garage/APKBUILD
index 4eb7dae55d6..bdddfe2b938 100644
--- a/community/garage/APKBUILD
+++ b/community/garage/APKBUILD
@@ -35,6 +35,7 @@ export CARGO_PROFILE_RELEASE_OPT_LEVEL=2
export SODIUM_USE_PKG_CONFIG=1
export GIT_VERSION="v$pkgver" # version used in --version
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
cargo fetch --target="$CTARGET" --locked
diff --git a/community/gfold/APKBUILD b/community/gfold/APKBUILD
index 1de7f67a0a6..e8169bef63a 100644
--- a/community/gfold/APKBUILD
+++ b/community/gfold/APKBUILD
@@ -10,6 +10,8 @@ arch="all !s390x !riscv64" # blocked by rust/cargo
makedepends="cargo"
source="https://github.com/nickgerace/gfold/archive/$pkgver/gfold-$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/gifski/APKBUILD b/community/gifski/APKBUILD
index 333dae2751f..408ae5be030 100644
--- a/community/gifski/APKBUILD
+++ b/community/gifski/APKBUILD
@@ -21,6 +21,8 @@ riscv64)
;;
esac
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/git-branchless/APKBUILD b/community/git-branchless/APKBUILD
index 3f11d1121fc..bc27c236dd5 100644
--- a/community/git-branchless/APKBUILD
+++ b/community/git-branchless/APKBUILD
@@ -20,6 +20,7 @@ source="https://github.com/arxanas/git-branchless/archive/v$pkgver/git-branchles
"
export LIBSSH2_SYS_USE_PKG_CONFIG=1 # use system libssh2
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/git-interactive-rebase-tool/APKBUILD b/community/git-interactive-rebase-tool/APKBUILD
index 4cd24ecd1f6..4c37c0e0ae7 100644
--- a/community/git-interactive-rebase-tool/APKBUILD
+++ b/community/git-interactive-rebase-tool/APKBUILD
@@ -12,6 +12,7 @@ subpackages="$pkgname-doc"
source="https://github.com/MitMaro/git-interactive-rebase-tool/archive/$pkgver/$pkgname-$pkgver.tar.gz"
export CARGO_PROFILE_RELEASE_OPT_LEVEL="z"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/git-metafile/APKBUILD b/community/git-metafile/APKBUILD
index 9605f3a3a9c..b9937e63f5a 100644
--- a/community/git-metafile/APKBUILD
+++ b/community/git-metafile/APKBUILD
@@ -18,6 +18,8 @@ source="https://github.com/jirutka/$pkgname/archive/v$pkgver/$pkgname-$pkgver.ta
gitignore
"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/git-warp-time/APKBUILD b/community/git-warp-time/APKBUILD
index 95f0f1a4ae0..3538296c452 100644
--- a/community/git-warp-time/APKBUILD
+++ b/community/git-warp-time/APKBUILD
@@ -11,6 +11,8 @@ makedepends="cargo"
subpackages="$pkgname-bash-completion $pkgname-fish-completion $pkgname-zsh-completion"
source="https://github.com/alerque/git-warp-time/archive/v$pkgver/git-warp-time-$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/gitui/APKBUILD b/community/gitui/APKBUILD
index 37ac61fed07..5b2cb390fe6 100644
--- a/community/gitui/APKBUILD
+++ b/community/gitui/APKBUILD
@@ -21,6 +21,8 @@ export RUSTONIG_DYNAMIC_LIBONIG=1 # use system libonig
_cargo_opts="--frozen --no-default-features --features regex-onig"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/gnome-authenticator/APKBUILD b/community/gnome-authenticator/APKBUILD
index 810067e4735..865969da3a1 100644
--- a/community/gnome-authenticator/APKBUILD
+++ b/community/gnome-authenticator/APKBUILD
@@ -28,6 +28,8 @@ subpackages="$pkgname-dbg $pkgname-lang"
source="https://gitlab.gnome.org/World/Authenticator/-/archive/$pkgver/Authenticator-$pkgver.tar.gz"
builddir="$srcdir/Authenticator-$pkgver"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
abuild-meson . output
meson compile ${JOBS:+-j ${JOBS}} -C output
diff --git a/community/gnome-podcasts/APKBUILD b/community/gnome-podcasts/APKBUILD
index 2701f092346..80f582e99f8 100644
--- a/community/gnome-podcasts/APKBUILD
+++ b/community/gnome-podcasts/APKBUILD
@@ -33,6 +33,8 @@ source="https://gitlab.gnome.org/World/podcasts/uploads/de438a4d62196bddd134bb15
meson-0.60.patch
"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/gnome-shortwave/APKBUILD b/community/gnome-shortwave/APKBUILD
index b1c549d2e18..52b7e621397 100644
--- a/community/gnome-shortwave/APKBUILD
+++ b/community/gnome-shortwave/APKBUILD
@@ -42,6 +42,8 @@ riscv64)
;;
esac
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
abuild-meson . output
meson compile ${JOBS:+-j ${JOBS}} -C output
diff --git a/community/gnome-tour/APKBUILD b/community/gnome-tour/APKBUILD
index 12147a5c149..8cc6e96da06 100644
--- a/community/gnome-tour/APKBUILD
+++ b/community/gnome-tour/APKBUILD
@@ -14,6 +14,8 @@ source="https://download.gnome.org/sources/gnome-tour/${pkgver%.*}/gnome-tour-$p
[ "$CARCH" = "riscv64" ] && options="$options textrels"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
abuild-meson . output
meson compile ${JOBS:+-j ${JOBS}} -C output
diff --git a/community/greetd-tuigreet/APKBUILD b/community/greetd-tuigreet/APKBUILD
index d11a312b49b..d22d5af49a7 100644
--- a/community/greetd-tuigreet/APKBUILD
+++ b/community/greetd-tuigreet/APKBUILD
@@ -19,6 +19,7 @@ builddir="$srcdir/$_projname-$pkgver"
options="!check" # no tests provided
export CARGO_PROFILE_RELEASE_OPT_LEVEL="z"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/greetd/APKBUILD b/community/greetd/APKBUILD
index e14fa2da602..586fc657314 100644
--- a/community/greetd/APKBUILD
+++ b/community/greetd/APKBUILD
@@ -30,6 +30,7 @@ source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~kennylevinsen/greetd/archive
"
export RUSTFLAGS="$RUSTFLAGS --remap-path-prefix=$builddir=/build/"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/handlr/APKBUILD b/community/handlr/APKBUILD
index e92262442c3..093a527c657 100644
--- a/community/handlr/APKBUILD
+++ b/community/handlr/APKBUILD
@@ -15,6 +15,7 @@ source="https://github.com/chmln/handlr/archive/v$pkgver/handlr-$pkgver.tar.gz
"
export CARGO_PROFILE_RELEASE_OPT_LEVEL="z"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/helix/APKBUILD b/community/helix/APKBUILD
index 94b5a30793f..d0b475c95e3 100644
--- a/community/helix/APKBUILD
+++ b/community/helix/APKBUILD
@@ -25,6 +25,8 @@ source="https://github.com/helix-editor/helix/archive/$pkgver/helix-$pkgver.tar.
# Don't build tree-sitter languages, we provide them in standalone aports.
export HELIX_DISABLE_AUTO_GRAMMAR_BUILD=1
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/hexyl/APKBUILD b/community/hexyl/APKBUILD
index 63d92386fa8..9415715415f 100644
--- a/community/hexyl/APKBUILD
+++ b/community/hexyl/APKBUILD
@@ -10,6 +10,8 @@ arch="all !s390x !riscv64" # blocked by rust/cargo
makedepends="cargo"
source="https://github.com/sharkdp/hexyl/archive/v$pkgver/hexyl-$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/himalaya/APKBUILD b/community/himalaya/APKBUILD
index fbde036ab8b..ddbe8a5d909 100644
--- a/community/himalaya/APKBUILD
+++ b/community/himalaya/APKBUILD
@@ -16,6 +16,8 @@ subpackages="
"
source="https://github.com/soywod/himalaya/archive/v$pkgver/himalaya-$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/hkdm/APKBUILD b/community/hkdm/APKBUILD
index 81562856a53..a8bc97c97ac 100644
--- a/community/hkdm/APKBUILD
+++ b/community/hkdm/APKBUILD
@@ -15,6 +15,8 @@ _cargo_opts="--frozen --no-default-features"
[ "$CARCH" = "riscv64" ] && options="$options textrels"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
diff --git a/community/httm/APKBUILD b/community/httm/APKBUILD
index 93b5b98fd48..5d6d103df3b 100644
--- a/community/httm/APKBUILD
+++ b/community/httm/APKBUILD
@@ -14,6 +14,8 @@ subpackages="$pkgname-doc"
source="https://github.com/kimono-koans/httm/archive/refs/tags/$pkgver/httm-$pkgver.tar.gz"
options="!check" # no tests provided
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/hyperfine/APKBUILD b/community/hyperfine/APKBUILD
index 1d098669887..9f9a94842b2 100644
--- a/community/hyperfine/APKBUILD
+++ b/community/hyperfine/APKBUILD
@@ -17,6 +17,7 @@ subpackages="
source="https://github.com/sharkdp/hyperfine/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
export CARGO_PROFILE_RELEASE_OPT_LEVEL="z"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/ikona/APKBUILD b/community/ikona/APKBUILD
index d080897c5f6..4587046cd0a 100644
--- a/community/ikona/APKBUILD
+++ b/community/ikona/APKBUILD
@@ -31,6 +31,8 @@ subpackages="
"
options="!check" # No tests
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
diff --git a/community/image-roll/APKBUILD b/community/image-roll/APKBUILD
index a0ea57835d6..43a6cf8459a 100644
--- a/community/image-roll/APKBUILD
+++ b/community/image-roll/APKBUILD
@@ -11,6 +11,8 @@ makedepends="cargo gtk4.0-dev"
source="https://github.com/weclaw1/image-roll/archive/$pkgver/image-roll-$pkgver.tar.gz"
options="!check" # no tests provided
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/ion-shell/APKBUILD b/community/ion-shell/APKBUILD
index 11bc90660f4..6747e0dee78 100644
--- a/community/ion-shell/APKBUILD
+++ b/community/ion-shell/APKBUILD
@@ -13,6 +13,8 @@ install="$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-deinstall"
source="$pkgname-$_commit.tar.gz::https://gitlab.redox-os.org/redox-os/ion/-/archive/$_commit.tar.gz"
builddir="$srcdir/ion-$_commit"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
diff --git a/community/jless/APKBUILD b/community/jless/APKBUILD
index 9e4ec63b2a9..6012a713ce0 100644
--- a/community/jless/APKBUILD
+++ b/community/jless/APKBUILD
@@ -13,6 +13,8 @@ license="MIT"
makedepends="rust cargo python3 libxcb-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/PaulJuliusMartinez/jless/archive/refs/tags/v$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/jql/APKBUILD b/community/jql/APKBUILD
index 88ff616ab46..66574712f92 100644
--- a/community/jql/APKBUILD
+++ b/community/jql/APKBUILD
@@ -11,6 +11,8 @@ license="MIT"
makedepends="cargo"
source="https://github.com/yamafaktory/jql/archive/v$pkgver/jql-$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/just/APKBUILD b/community/just/APKBUILD
index 9f70eac7c11..b5e8fc50b77 100644
--- a/community/just/APKBUILD
+++ b/community/just/APKBUILD
@@ -20,6 +20,7 @@ subpackages="
source="https://github.com/casey/just/archive/$pkgver/just-$pkgver.tar.gz"
export CARGO_PROFILE_RELEASE_OPT_LEVEL="z"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/karlender/APKBUILD b/community/karlender/APKBUILD
index 8923f48f08f..b00c1febb07 100644
--- a/community/karlender/APKBUILD
+++ b/community/karlender/APKBUILD
@@ -20,6 +20,8 @@ source="https://gitlab.com/floers/karlender/-/archive/v$pkgver/karlender-v$pkgve
options="!check"
builddir="$srcdir/$pkgname-v$pkgver"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/keepassxc-proxy-static/APKBUILD b/community/keepassxc-proxy-static/APKBUILD
index eb58f7816a3..d4f8ba29144 100644
--- a/community/keepassxc-proxy-static/APKBUILD
+++ b/community/keepassxc-proxy-static/APKBUILD
@@ -18,6 +18,7 @@ builddir="$srcdir/$_projname-$pkgver"
export CARGO_PROFILE_RELEASE_OPT_LEVEL="z"
export RUSTFLAGS="$RUSTFLAGS -C target-feature=+crt-static"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/kibi/APKBUILD b/community/kibi/APKBUILD
index 1d0c68dd91f..3982d126a30 100644
--- a/community/kibi/APKBUILD
+++ b/community/kibi/APKBUILD
@@ -10,6 +10,8 @@ license="(Apache-2.0 OR MIT) AND BSD-2-Clause"
makedepends="cargo"
source="https://github.com/ilai-deutel/kibi/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/kmon/APKBUILD b/community/kmon/APKBUILD
index df0a9cae545..e0c2e18a426 100644
--- a/community/kmon/APKBUILD
+++ b/community/kmon/APKBUILD
@@ -14,6 +14,8 @@ subpackages="$pkgname-doc
"
source="$pkgname-$pkgver.tar.gz::https://github.com/orhun/kmon/archive/refs/tags/v$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
diff --git a/community/kooha/APKBUILD b/community/kooha/APKBUILD
index 08794f33cbf..258fe8eddba 100644
--- a/community/kooha/APKBUILD
+++ b/community/kooha/APKBUILD
@@ -41,6 +41,7 @@ source="https://github.com/SeaDve/Kooha/releases/download/v$pkgver/kooha-$pkgver
# TODO: Find out why I didn't originally use panic=abort and if it's still relevant.
export CARGO_PROFILE_RELEASE_PANIC="unwind"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/krapslog/APKBUILD b/community/krapslog/APKBUILD
index eebe585de74..5d2d94bef04 100644
--- a/community/krapslog/APKBUILD
+++ b/community/krapslog/APKBUILD
@@ -11,6 +11,8 @@ makedepends="cargo"
source="$pkgname-rs-$pkgver.tar.gz::https://github.com/acj/krapslog-rs/archive/$pkgver.tar.gz"
builddir="$srcdir/$pkgname-rs-$pkgver"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cargo build --release --locked
}
diff --git a/community/lfs/APKBUILD b/community/lfs/APKBUILD
index f31c58246a3..90fb6dcb5a9 100644
--- a/community/lfs/APKBUILD
+++ b/community/lfs/APKBUILD
@@ -10,6 +10,8 @@ arch="all !s390x !riscv64" # blocked by rust/cargo
makedepends="cargo"
source="https://github.com/Canop/lfs/archive/v$pkgver/lfs-$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cargo build --release --locked
}
diff --git a/community/libimagequant/APKBUILD b/community/libimagequant/APKBUILD
index ad4c6bdee99..b4d970e9102 100644
--- a/community/libimagequant/APKBUILD
+++ b/community/libimagequant/APKBUILD
@@ -25,6 +25,8 @@ x86)
;;
esac
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/libopenraw/APKBUILD b/community/libopenraw/APKBUILD
index ad8ded2a460..123b6898fc5 100644
--- a/community/libopenraw/APKBUILD
+++ b/community/libopenraw/APKBUILD
@@ -19,6 +19,8 @@ subpackages="$pkgname-dev"
source="https://libopenraw.freedesktop.org/download/libopenraw-$pkgver.tar.bz2"
options="net" # cargo fetch
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
update_config_sub
diff --git a/community/librsvg/APKBUILD b/community/librsvg/APKBUILD
index ac8c2f34aa0..427321613f6 100644
--- a/community/librsvg/APKBUILD
+++ b/community/librsvg/APKBUILD
@@ -51,6 +51,7 @@ fi
# - CVE-2019-20446
export RUSTFLAGS="$RUSTFLAGS -C debuginfo=1"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/lightdm-mobile-greeter/APKBUILD b/community/lightdm-mobile-greeter/APKBUILD
index 0244044c7f2..0ed682d2e38 100644
--- a/community/lightdm-mobile-greeter/APKBUILD
+++ b/community/lightdm-mobile-greeter/APKBUILD
@@ -13,6 +13,8 @@ source="$pkgname-$pkgver-2.tar.gz::https://git.raatty.club/raatty/lightdm-mobile
builddir="$srcdir/$pkgname"
options="!check" # No tests
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/mandown/APKBUILD b/community/mandown/APKBUILD
index 91a2fec326a..718b3698126 100644
--- a/community/mandown/APKBUILD
+++ b/community/mandown/APKBUILD
@@ -14,6 +14,8 @@ source="https://gitlab.com/kornelski/mandown/-/archive/$pkgver/mandown-$pkgver.t
"
options="!check" # no test suite
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/maturin/APKBUILD b/community/maturin/APKBUILD
index 7fd14f5f002..d190929871b 100644
--- a/community/maturin/APKBUILD
+++ b/community/maturin/APKBUILD
@@ -44,6 +44,8 @@ riscv64)
;;
esac
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/mcfly/APKBUILD b/community/mcfly/APKBUILD
index 9d45aed440b..3c84cf996d0 100644
--- a/community/mcfly/APKBUILD
+++ b/community/mcfly/APKBUILD
@@ -21,6 +21,7 @@ source="https://github.com/cantino/mcfly/archive/v$pkgver/mcfly-$pkgver.tar.gz
# Reduce size of the mcfly binary.
export CARGO_PROFILE_RELEASE_OPT_LEVEL="z"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/mdbook/APKBUILD b/community/mdbook/APKBUILD
index 770b9508c16..a29380b9776 100644
--- a/community/mdbook/APKBUILD
+++ b/community/mdbook/APKBUILD
@@ -15,6 +15,7 @@ subpackages="
source="$pkgname-$pkgver.tar.gz::https://github.com/rust-lang/mdBook/archive/v$pkgver.tar.gz"
builddir="$srcdir/mdBook-$pkgver"
export CARGO_HOME="$srcdir"/cargo
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/meilisearch/APKBUILD b/community/meilisearch/APKBUILD
index ccb19d31124..636d355f8af 100644
--- a/community/meilisearch/APKBUILD
+++ b/community/meilisearch/APKBUILD
@@ -34,6 +34,8 @@ export CARGO_PROFILE_RELEASE_OPT_LEVEL=2
# and specialized tokenizers (they are huge).
_cargo_opts="--frozen --no-default-features"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/mercurial/APKBUILD b/community/mercurial/APKBUILD
index 40d97c5bfd0..b8dff991949 100644
--- a/community/mercurial/APKBUILD
+++ b/community/mercurial/APKBUILD
@@ -41,6 +41,8 @@ esac
# 4.9-r0:
# - CVE-2019-3902
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
python3 setup.py build
}
diff --git a/community/miniserve/APKBUILD b/community/miniserve/APKBUILD
index 11f5d4cd8a1..fc0dd738c32 100644
--- a/community/miniserve/APKBUILD
+++ b/community/miniserve/APKBUILD
@@ -25,6 +25,8 @@ x86*)
;;
esac
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/monolith/APKBUILD b/community/monolith/APKBUILD
index b7b61d362f0..537f6ba7257 100644
--- a/community/monolith/APKBUILD
+++ b/community/monolith/APKBUILD
@@ -14,6 +14,8 @@ makedepends="
"
source="https://github.com/Y2Z/monolith/archive/v$pkgver/monolith-$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/mozjs102/APKBUILD b/community/mozjs102/APKBUILD
index 607b67fd651..1580de0aaa1 100644
--- a/community/mozjs102/APKBUILD
+++ b/community/mozjs102/APKBUILD
@@ -47,6 +47,8 @@ riscv64)
;;
esac
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
mkdir "$srcdir/mozbuild"
diff --git a/community/mprocs/APKBUILD b/community/mprocs/APKBUILD
index a5a34a5e58f..387fda8801b 100644
--- a/community/mprocs/APKBUILD
+++ b/community/mprocs/APKBUILD
@@ -11,6 +11,7 @@ makedepends="cargo"
source="https://github.com/pvolok/mprocs/archive/v$pkgver/mprocs-$pkgver.tar.gz"
export CARGO_PROFILE_RELEASE_OPT_LEVEL="z"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/mqttui/APKBUILD b/community/mqttui/APKBUILD
index d40c9441b44..be3cebd9e7a 100644
--- a/community/mqttui/APKBUILD
+++ b/community/mqttui/APKBUILD
@@ -17,6 +17,8 @@ subpackages="
"
source="https://github.com/EdJoPaTo/mqttui/archive/v$pkgver/mqttui-$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/ncspot/APKBUILD b/community/ncspot/APKBUILD
index e5e0e1094f8..0ac0a408339 100644
--- a/community/ncspot/APKBUILD
+++ b/community/ncspot/APKBUILD
@@ -25,6 +25,8 @@ options="!check" # there's only one unit test (in v0.8.1)
_cargo_opts='--frozen --features cover,share_selection'
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/netavark/APKBUILD b/community/netavark/APKBUILD
index d8db361abff..13a4d8c4c28 100644
--- a/community/netavark/APKBUILD
+++ b/community/netavark/APKBUILD
@@ -15,6 +15,8 @@ subpackages="$pkgname-doc"
source="https://github.com/containers/netavark/archive/v$pkgver/netavark-$pkgver.tar.gz"
options="net"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
make
diff --git a/community/newsboat/APKBUILD b/community/newsboat/APKBUILD
index 41d3b2654a4..4d349db281c 100644
--- a/community/newsboat/APKBUILD
+++ b/community/newsboat/APKBUILD
@@ -21,6 +21,8 @@ source="
# 2.30.1-r0:
# - CVE-2020-26235
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
./config.sh
echo "LDFLAGS+= -lintl" >> config.mk
diff --git a/community/newsflash/APKBUILD b/community/newsflash/APKBUILD
index e36c03e742c..a05925112aa 100644
--- a/community/newsflash/APKBUILD
+++ b/community/newsflash/APKBUILD
@@ -21,6 +21,8 @@ source="https://gitlab.com/news-flash/news_flash_gtk/-/archive/v.$pkgver/news_fl
options="net !check" # no tests
builddir="$srcdir/news_flash_gtk-v.$pkgver"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
abuild-meson . output
meson compile -j 1 -C output
diff --git a/community/obfuscate/APKBUILD b/community/obfuscate/APKBUILD
index cd4b0e763d7..5ffc23790e0 100644
--- a/community/obfuscate/APKBUILD
+++ b/community/obfuscate/APKBUILD
@@ -16,6 +16,8 @@ source="https://gitlab.gnome.org/World/obfuscate/uploads/$_pkgurl/obfuscate-$pkg
provides="gnome-obfuscate=$pkgver-r$pkgrel"
replaces="gnome-obfuscate"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
abuild-meson . output
meson compile ${JOBS:+-j ${JOBS}} -C output
diff --git a/community/onefetch/APKBUILD b/community/onefetch/APKBUILD
index b8bb0cc7fd0..036df1cd968 100644
--- a/community/onefetch/APKBUILD
+++ b/community/onefetch/APKBUILD
@@ -19,6 +19,7 @@ source="$pkgname-$pkgver.tar.gz::https://crates.io/api/v1/crates/onefetch/$pkgve
# Reduce binary size
export CARGO_PROFILE_RELEASE_OPT_LEVEL="z"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/oxipng/APKBUILD b/community/oxipng/APKBUILD
index 2f37fb95cae..e81c84eeb22 100644
--- a/community/oxipng/APKBUILD
+++ b/community/oxipng/APKBUILD
@@ -10,6 +10,8 @@ license="MIT"
makedepends="cargo"
source="https://github.com/shssoichiro/oxipng/archive/v$pkgver/oxipng-$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/peep/APKBUILD b/community/peep/APKBUILD
index 2c128d62b41..601ad98c06e 100644
--- a/community/peep/APKBUILD
+++ b/community/peep/APKBUILD
@@ -17,6 +17,7 @@ source="https://github.com/ryochack/peep/archive/$_gitrev/peep-$_gitrev.tar.gz
builddir="$srcdir/$pkgname-$_gitrev"
export CARGO_PROFILE_RELEASE_OPT_LEVEL="z"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/piow/APKBUILD b/community/piow/APKBUILD
index 941587e0da9..aa7a1be3280 100644
--- a/community/piow/APKBUILD
+++ b/community/piow/APKBUILD
@@ -15,6 +15,7 @@ source="https://github.com/KuabeM/piow/archive/v$pkgver/piow-$pkgver.tar.gz
options="!check" # no tests provided
export CARGO_PROFILE_RELEASE_OPT_LEVEL="z"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/pipr/APKBUILD b/community/pipr/APKBUILD
index 2671f6ec93d..b2a7c1e33fd 100644
--- a/community/pipr/APKBUILD
+++ b/community/pipr/APKBUILD
@@ -17,6 +17,7 @@ source="https://github.com/elkowar/pipr/archive/v$pkgver/pipr-$pkgver.tar.gz
"
export RUSTONIG_DYNAMIC_LIBONIG=1 # use system libonig
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/pngquant/APKBUILD b/community/pngquant/APKBUILD
index 4474bf48c9a..dc878d1dc01 100644
--- a/community/pngquant/APKBUILD
+++ b/community/pngquant/APKBUILD
@@ -20,6 +20,8 @@ source="https://github.com/kornelski/pngquant/archive/$pkgver/pngquant-$pkgver.t
"
options="!check" # seems to not have any runnable anymore
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
rmdir lib
diff --git a/community/procs/APKBUILD b/community/procs/APKBUILD
index 4044f57dd15..d9ed2c03741 100644
--- a/community/procs/APKBUILD
+++ b/community/procs/APKBUILD
@@ -16,6 +16,7 @@ subpackages="
source="procs-$pkgver.tar.gz::https://github.com/dalance/procs/archive/v$pkgver.tar.gz"
export CARGO_PROFILE_RELEASE_OPT_LEVEL="z"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/prometheus-wireguard-exporter/APKBUILD b/community/prometheus-wireguard-exporter/APKBUILD
index 02208e8289b..322246518b5 100644
--- a/community/prometheus-wireguard-exporter/APKBUILD
+++ b/community/prometheus-wireguard-exporter/APKBUILD
@@ -18,6 +18,8 @@ source="https://github.com/MindFlavor/prometheus_wireguard_exporter/archive/$pkg
options="net"
builddir="$srcdir"/prometheus_wireguard_exporter-"$pkgver"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/pueue/APKBUILD b/community/pueue/APKBUILD
index 12c169e86ca..0d482b0714f 100644
--- a/community/pueue/APKBUILD
+++ b/community/pueue/APKBUILD
@@ -18,6 +18,8 @@ subpackages="
source="https://github.com/Nukesor/pueue/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
options="net"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/purism-ectool/APKBUILD b/community/purism-ectool/APKBUILD
index de80943bef0..cdcd03e45bb 100644
--- a/community/purism-ectool/APKBUILD
+++ b/community/purism-ectool/APKBUILD
@@ -11,6 +11,8 @@ makedepends="cargo eudev-dev linux-headers"
source="https://source.puri.sm/firmware/librem-ec/-/archive/$pkgver/librem-ec-$pkgver.tar.gz"
builddir="$srcdir/librem-ec-$pkgver/tool"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/py3-adblock/APKBUILD b/community/py3-adblock/APKBUILD
index b4132ed60b2..717bd04d449 100644
--- a/community/py3-adblock/APKBUILD
+++ b/community/py3-adblock/APKBUILD
@@ -26,6 +26,7 @@ builddir="$srcdir/$_pkgname-$pkgver"
export CARGO_PROFILE_RELEASE_DEBUG=0
export CARGO_HOME="$srcdir/cargo"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
build() {
maturin build --release --strip --manylinux off \
diff --git a/community/py3-orjson/APKBUILD b/community/py3-orjson/APKBUILD
index e696f7c9448..658a3d9f3a2 100644
--- a/community/py3-orjson/APKBUILD
+++ b/community/py3-orjson/APKBUILD
@@ -24,6 +24,8 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/ijl/orjson/archive/refs/tags
builddir="$srcdir/orjson-$pkgver"
options="net"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
gpep517 build-wheel \
--wheel-dir dist \
diff --git a/community/py3-setuptools-rust/APKBUILD b/community/py3-setuptools-rust/APKBUILD
index 0074770e798..95f78b82db7 100644
--- a/community/py3-setuptools-rust/APKBUILD
+++ b/community/py3-setuptools-rust/APKBUILD
@@ -16,6 +16,7 @@ builddir="$srcdir/setuptools-rust-$pkgver"
options="net" # check needs network access, no easy patch
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
build() {
python3 setup.py build
diff --git a/community/py3-watchfiles/APKBUILD b/community/py3-watchfiles/APKBUILD
index 65203ed111e..4c8f770266f 100644
--- a/community/py3-watchfiles/APKBUILD
+++ b/community/py3-watchfiles/APKBUILD
@@ -13,6 +13,8 @@ checkdepends="py3-pytest py3-pytest-asyncio py3-pytest-mock py3-pytest-toolbox p
source="$pkgname-v$pkgver.tar.gz::https://github.com/samuelcolvin/watchfiles/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/watchfiles-$pkgver"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/rbspy/APKBUILD b/community/rbspy/APKBUILD
index 931a1ac05d0..a6d6f8c9d26 100644
--- a/community/rbspy/APKBUILD
+++ b/community/rbspy/APKBUILD
@@ -12,6 +12,8 @@ checkdepends="ruby"
options="net"
source="$pkgname-$pkgver.tar.gz::https://github.com/rbspy/rbspy/archive/v$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cargo build --release --locked
}
diff --git a/community/rebuilderd/APKBUILD b/community/rebuilderd/APKBUILD
index 55f98c71723..82b3c514256 100644
--- a/community/rebuilderd/APKBUILD
+++ b/community/rebuilderd/APKBUILD
@@ -36,6 +36,8 @@ source="
rebuilderd-sync.cron
"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/ripgrep/APKBUILD b/community/ripgrep/APKBUILD
index 6e58000a7dd..4fcecca9dfa 100644
--- a/community/ripgrep/APKBUILD
+++ b/community/ripgrep/APKBUILD
@@ -18,6 +18,7 @@ source="https://github.com/BurntSushi/ripgrep/archive/$pkgver/ripgrep-$pkgver.ta
export PCRE2_SYS_STATIC=0 # use system libpcre2
export JEMALLOC_SYS_WITH_LG_PAGE=16 # 2**16 = 64k
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
build() {
cargo build --release --locked --features 'pcre2'
diff --git a/community/rust-analyzer/APKBUILD b/community/rust-analyzer/APKBUILD
index e48de58f0e6..0991c37bdc9 100644
--- a/community/rust-analyzer/APKBUILD
+++ b/community/rust-analyzer/APKBUILD
@@ -22,6 +22,8 @@ options="net !check"
# crashes otherwise
unset CARGO_PROFILE_RELEASE_PANIC
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/rustup/APKBUILD b/community/rustup/APKBUILD
index 3a4200a51a8..f1c35c5deff 100644
--- a/community/rustup/APKBUILD
+++ b/community/rustup/APKBUILD
@@ -29,6 +29,7 @@ source="
# It doesn't like our custom triplet
export RUSTUP_OVERRIDE_BUILD_TRIPLE="$CARCH-unknown-linux-musl"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/sad/APKBUILD b/community/sad/APKBUILD
index 8711d96f268..c24f4495640 100644
--- a/community/sad/APKBUILD
+++ b/community/sad/APKBUILD
@@ -10,6 +10,8 @@ license="MIT"
makedepends="cargo"
source="https://github.com/ms-jpq/sad/archive/v$pkgver/sad-$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/sccache/APKBUILD b/community/sccache/APKBUILD
index b30398cc488..634324f1b62 100644
--- a/community/sccache/APKBUILD
+++ b/community/sccache/APKBUILD
@@ -27,6 +27,8 @@ x86_64)
;;
esac
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
diff --git a/community/sheldon/APKBUILD b/community/sheldon/APKBUILD
index 4a309799059..ec93b73f0d7 100644
--- a/community/sheldon/APKBUILD
+++ b/community/sheldon/APKBUILD
@@ -23,6 +23,7 @@ source="https://github.com/rossmacarthur/sheldon/archive/$pkgver/sheldon-$pkgver
export CARGO_PROFILE_RELEASE_OPT_LEVEL="z"
export LIBSSH2_SYS_USE_PKG_CONFIG=1 # use system libssh2
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/skim/APKBUILD b/community/skim/APKBUILD
index fe1c04f7ecb..c715a4c8fd6 100644
--- a/community/skim/APKBUILD
+++ b/community/skim/APKBUILD
@@ -30,6 +30,8 @@ case "$CARCH" in
armhf | armv7 | x86) options="!check";;
esac
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/sn0int/APKBUILD b/community/sn0int/APKBUILD
index cc2d8fd0755..1ff010b7964 100644
--- a/community/sn0int/APKBUILD
+++ b/community/sn0int/APKBUILD
@@ -26,6 +26,8 @@ subpackages="$pkgname-doc
options="net"
source="$pkgname-$pkgver.tar.gz::https://github.com/kpcyrd/sn0int/archive/v$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cargo build --release --locked
diff --git a/community/sniffglue/APKBUILD b/community/sniffglue/APKBUILD
index 12dbab047c1..274cad76a19 100644
--- a/community/sniffglue/APKBUILD
+++ b/community/sniffglue/APKBUILD
@@ -21,6 +21,8 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/kpcyrd/sniffglue/archive/v$p
sniffglue.conf
"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cargo build --release --locked
make docs
diff --git a/community/songrec/APKBUILD b/community/songrec/APKBUILD
index cac0bfc3136..c21a97ef700 100644
--- a/community/songrec/APKBUILD
+++ b/community/songrec/APKBUILD
@@ -24,6 +24,8 @@ source="https://github.com/marin-m/songrec/archive/$pkgver/songrec-$pkgver.tar.g
options="net !check"
builddir="$srcdir/SongRec-$pkgver"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cargo build --release --locked
}
diff --git a/community/spot/APKBUILD b/community/spot/APKBUILD
index 9524e4ce69e..95d1ba06ac0 100644
--- a/community/spot/APKBUILD
+++ b/community/spot/APKBUILD
@@ -28,6 +28,8 @@ source="https://github.com/xou816/spot/archive/$pkgver/spot-$pkgver.tar.gz
"
options="net" # cargo fetch
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
# NOTE: buildtype must be release!
abuild-meson \
diff --git a/community/squeekboard/APKBUILD b/community/squeekboard/APKBUILD
index 871738f7568..e87c1b3b609 100644
--- a/community/squeekboard/APKBUILD
+++ b/community/squeekboard/APKBUILD
@@ -29,6 +29,8 @@ subpackages="$pkgname-lang"
source="https://gitlab.gnome.org/World/Phosh/squeekboard/-/archive/v$pkgver/squeekboard-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
abuild-meson -Dstrict=false . output
meson compile ${JOBS:+-j ${JOBS}} -C output
diff --git a/community/stargazer-gmi/APKBUILD b/community/stargazer-gmi/APKBUILD
index d2af8be2266..ffbd00e73e3 100644
--- a/community/stargazer-gmi/APKBUILD
+++ b/community/stargazer-gmi/APKBUILD
@@ -19,6 +19,8 @@ source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~zethra/stargazer/archive/$pk
builddir="$srcdir/stargazer-$pkgver"
options="!check" # connection refused to localhost
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
./scripts/build
}
diff --git a/community/starship/APKBUILD b/community/starship/APKBUILD
index b3cb8244c17..95ffd4a697e 100644
--- a/community/starship/APKBUILD
+++ b/community/starship/APKBUILD
@@ -30,6 +30,8 @@ options="net" # fetching dependencies
# http feature is used just for reporting bugs
_cargo_opts="--frozen --no-default-features --features notify"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
cargo fetch --target="$CTARGET" --locked
diff --git a/community/stylua/APKBUILD b/community/stylua/APKBUILD
index d4aee5e026e..2ae22d4c3d0 100644
--- a/community/stylua/APKBUILD
+++ b/community/stylua/APKBUILD
@@ -13,6 +13,8 @@ builddir="$srcdir/StyLua-$pkgver"
_features="--no-default-features --features lua54,strum,serialize"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
diff --git a/community/suricata/APKBUILD b/community/suricata/APKBUILD
index 117f369931b..7f9dc613d25 100644
--- a/community/suricata/APKBUILD
+++ b/community/suricata/APKBUILD
@@ -63,6 +63,8 @@ case "$CARCH" in
makedepends="$makedepends vectorscan-dev" ;;
esac
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
autoreconf -vif
diff --git a/community/swayr/APKBUILD b/community/swayr/APKBUILD
index d2cc1f33767..d21d75fe56f 100644
--- a/community/swayr/APKBUILD
+++ b/community/swayr/APKBUILD
@@ -22,6 +22,7 @@ esac
# - CVE-2022-24713
export CARGO_PROFILE_RELEASE_OPT_LEVEL="z"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/swayrbar/APKBUILD b/community/swayrbar/APKBUILD
index 9b630100010..49a81391fa0 100644
--- a/community/swayrbar/APKBUILD
+++ b/community/swayrbar/APKBUILD
@@ -12,6 +12,7 @@ source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~tsdh/swayr/archive/swayrbar-
builddir="$srcdir/swayr-swayrbar-$pkgver"
export CARGO_PROFILE_RELEASE_OPT_LEVEL="z"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/taplo/APKBUILD b/community/taplo/APKBUILD
index c1e7e4134e2..b747bb8b8a3 100644
--- a/community/taplo/APKBUILD
+++ b/community/taplo/APKBUILD
@@ -20,6 +20,8 @@ export CARGO_PROFILE_RELEASE_OPT_LEVEL="z"
_cargo_opts="--frozen --no-default-features --features native-tls"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/tau/APKBUILD b/community/tau/APKBUILD
index bf416b8cf85..e8941a03730 100644
--- a/community/tau/APKBUILD
+++ b/community/tau/APKBUILD
@@ -30,6 +30,8 @@ source="https://gitlab.gnome.org/World/Tau/uploads/$_sha/tau-$pkgver.tar.xz
meson-0.60.patch
"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
abuild-meson . output
meson compile ${JOBS:+-j ${JOBS}} -C output
diff --git a/community/tectonic/APKBUILD b/community/tectonic/APKBUILD
index 91640bbc84a..10489550368 100644
--- a/community/tectonic/APKBUILD
+++ b/community/tectonic/APKBUILD
@@ -23,6 +23,8 @@ source="
builddir="$srcdir/tectonic-tectonic-$pkgver"
options="!check" # needs unpackages ubuntu mono font
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/thin-provisioning-tools/APKBUILD b/community/thin-provisioning-tools/APKBUILD
index 60ed31109e0..2c78b811ab0 100644
--- a/community/thin-provisioning-tools/APKBUILD
+++ b/community/thin-provisioning-tools/APKBUILD
@@ -23,6 +23,8 @@ riscv64)
;;
esac
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/thunderbird/APKBUILD b/community/thunderbird/APKBUILD
index 2e4cf45627e..e511798e231 100644
--- a/community/thunderbird/APKBUILD
+++ b/community/thunderbird/APKBUILD
@@ -335,6 +335,8 @@ sonameprefix="$pkgname:"
# we need this because cargo verifies checksums of all files in vendor
# crates when it builds and gives us no way to override or update the
# file sanely... so just clear out the file list
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
_clear_vendor_checksums() {
sed -i 's/\("files":{\)[^}]*/\1/' third_party/rust/$1/.cargo-checksum.json
}
diff --git a/community/tokei/APKBUILD b/community/tokei/APKBUILD
index 4f8ab9a5546..4aa22d4bad0 100644
--- a/community/tokei/APKBUILD
+++ b/community/tokei/APKBUILD
@@ -12,6 +12,8 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/XAMPPRocky/tokei/archive/v$p
minimize-size.patch
"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cargo build --release --locked --features all
}
diff --git a/community/tree-sitter/APKBUILD b/community/tree-sitter/APKBUILD
index 9a68e88fdb5..ebca9080465 100644
--- a/community/tree-sitter/APKBUILD
+++ b/community/tree-sitter/APKBUILD
@@ -37,6 +37,8 @@ case "$CARCH" in
aarch64 | arm* | ppc64le) options="!check";;
esac
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/tuc/APKBUILD b/community/tuc/APKBUILD
index aba7b0a121f..def28d7ffb6 100644
--- a/community/tuc/APKBUILD
+++ b/community/tuc/APKBUILD
@@ -10,6 +10,8 @@ arch="all !s390x !riscv64" # blocked by rust/cargo
makedepends="cargo"
source="https://github.com/riquito/tuc/archive/v$pkgver/tuc-$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/viu/APKBUILD b/community/viu/APKBUILD
index 596bda820f4..a9efa9bcf79 100644
--- a/community/viu/APKBUILD
+++ b/community/viu/APKBUILD
@@ -10,6 +10,8 @@ makedepends="cargo"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/atanunq/viu/archive/v$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
diff --git a/community/warp/APKBUILD b/community/warp/APKBUILD
index 15bb12242f6..4a56ee83dec 100644
--- a/community/warp/APKBUILD
+++ b/community/warp/APKBUILD
@@ -22,6 +22,8 @@ source="https://gitlab.gnome.org/World/warp/-/archive/v$pkgver/warp-v$pkgver.tar
builddir="$srcdir/warp-v$pkgver"
options="!check" # no tests
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
abuild-meson \
-Db_lto=true \
diff --git a/community/wasm-pack/APKBUILD b/community/wasm-pack/APKBUILD
index aeb0c7c0e1e..b1b540019a9 100644
--- a/community/wasm-pack/APKBUILD
+++ b/community/wasm-pack/APKBUILD
@@ -16,6 +16,7 @@ source="https://github.com/rustwasm/wasm-pack/archive/refs/tags/v$pkgver/wasm-pa
options="!check" # most tests fail outside of x86_64
export OPENSSL_NO_VENDOR=1
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/wayshot/APKBUILD b/community/wayshot/APKBUILD
index 97d29b649d8..e80d43afdeb 100644
--- a/community/wayshot/APKBUILD
+++ b/community/wayshot/APKBUILD
@@ -14,6 +14,8 @@ makedepends="cargo"
source="https://github.com/waycrate/wayshot/archive/$pkgver/wayshot-$pkgver.tar.gz"
options="!check" # no tests provided
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/websocat/APKBUILD b/community/websocat/APKBUILD
index bbf335575e7..81618ddb01a 100644
--- a/community/websocat/APKBUILD
+++ b/community/websocat/APKBUILD
@@ -10,6 +10,8 @@ makedepends="cargo openssl-dev>3"
options="net"
source="https://github.com/vi/websocat/archive/v$pkgver/websocat-$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cargo build --release --locked
}
diff --git a/community/wezterm/APKBUILD b/community/wezterm/APKBUILD
index aea77e9d8eb..8fff63a5c8b 100644
--- a/community/wezterm/APKBUILD
+++ b/community/wezterm/APKBUILD
@@ -66,6 +66,7 @@ source="
builddir="$srcdir/wezterm-$_pkgver"
export LIBSSH2_SYS_USE_PKG_CONFIG=1 # use system libssh2
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
cargo fetch --target="$CTARGET" --locked
diff --git a/community/wldash/APKBUILD b/community/wldash/APKBUILD
index 0cf6ecbfc27..591b3ef2b34 100644
--- a/community/wldash/APKBUILD
+++ b/community/wldash/APKBUILD
@@ -24,6 +24,8 @@ source="https://github.com/kennylevinsen/wldash/archive/v$pkgver/$pkgname-$pkgve
"
options="!check" # there are currently no tests
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/wluma/APKBUILD b/community/wluma/APKBUILD
index f449cb60d76..b43c57c87f3 100644
--- a/community/wluma/APKBUILD
+++ b/community/wluma/APKBUILD
@@ -31,6 +31,8 @@ source="https://github.com/maximbaz/wluma/archive/$pkgver/wluma-$pkgver.tar.gz
libv4l-rs-02-fix-wrong-_IOC_TYPE-on-musl.patch
"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
mv ../libv4l-rs-$_libv4l_gitrev "$builddir"/libv4l-rs
diff --git a/community/xh/APKBUILD b/community/xh/APKBUILD
index be82598eb57..c356b77a725 100644
--- a/community/xh/APKBUILD
+++ b/community/xh/APKBUILD
@@ -28,6 +28,8 @@ export RUSTONIG_DYNAMIC_LIBONIG=1
_cargo_opts="--frozen --no-default-features --features native-tls"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/xsv/APKBUILD b/community/xsv/APKBUILD
index d8d6f4398d4..ebc8b0c3be3 100644
--- a/community/xsv/APKBUILD
+++ b/community/xsv/APKBUILD
@@ -13,6 +13,7 @@ makedepends="cargo"
source="https://github.com/BurntSushi/xsv/archive/$pkgver/$pkgname-$pkgver.tar.gz"
export CARGO_PROFILE_RELEASE_OPT_LEVEL=2
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/yj/APKBUILD b/community/yj/APKBUILD
index 7d16d7a70e1..0e15d3f3472 100644
--- a/community/yj/APKBUILD
+++ b/community/yj/APKBUILD
@@ -11,6 +11,8 @@ makedepends="cargo"
source="https://github.com/bruceadams/yj/archive/v$pkgver/yj-$pkgver.tar.gz"
options="!check" # no tests provided
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/yofi/APKBUILD b/community/yofi/APKBUILD
index 56aa602aaec..7c6964399d1 100644
--- a/community/yofi/APKBUILD
+++ b/community/yofi/APKBUILD
@@ -22,6 +22,8 @@ source="https://github.com/l4l/yofi/archive/$pkgver/yofi-$pkgver.tar.gz
# font-fontkit loads fonts via system libraries.
_cargo_opts="--frozen --no-default-features --features=font-fontkit"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
cargo fetch --target="$CTARGET" --locked
default_prepare
diff --git a/community/zellij/APKBUILD b/community/zellij/APKBUILD
index ee041074ad5..579767de40c 100644
--- a/community/zellij/APKBUILD
+++ b/community/zellij/APKBUILD
@@ -35,6 +35,8 @@ aarch64)
;;
esac
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/zenith/APKBUILD b/community/zenith/APKBUILD
index 14f28dd0616..79092755ddf 100644
--- a/community/zenith/APKBUILD
+++ b/community/zenith/APKBUILD
@@ -18,6 +18,8 @@ makedepends="
source="https://github.com/bvaisvil/zenith/archive/$pkgver/zenith-$pkgver.tar.gz"
options="!check" # no tests provided
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/community/zerotier-one/APKBUILD b/community/zerotier-one/APKBUILD
index b27bfcbfd23..066ce7184a3 100644
--- a/community/zerotier-one/APKBUILD
+++ b/community/zerotier-one/APKBUILD
@@ -14,6 +14,8 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/zerotier/ZeroTierOne/archive
"
builddir="$srcdir"/ZeroTierOne-$pkgver
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
make
}
diff --git a/community/zola/APKBUILD b/community/zola/APKBUILD
index a85f9633ca8..09de5bb87bb 100644
--- a/community/zola/APKBUILD
+++ b/community/zola/APKBUILD
@@ -26,6 +26,7 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/getzola/zola/archive/v$pkgve
options="net" # fetch dependencies
export RUSTONIG_SYSTEM_LIBONIG=1 # Link against system liboniguruma
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/community/zoxide/APKBUILD b/community/zoxide/APKBUILD
index f63bb9df961..a3a21eb8eec 100644
--- a/community/zoxide/APKBUILD
+++ b/community/zoxide/APKBUILD
@@ -24,6 +24,8 @@ export CARGO_PROFILE_RELEASE_OPT_LEVEL="z"
[ "$CARCH" = "riscv64" ] && options="$options textrels"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/acmed/APKBUILD b/testing/acmed/APKBUILD
index 60fc0e35324..991636e76c1 100644
--- a/testing/acmed/APKBUILD
+++ b/testing/acmed/APKBUILD
@@ -19,6 +19,8 @@ source="https://github.com/breard-r/acmed/archive/refs/tags/v$pkgver/acmed-$pkgv
acmed.initd
"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
mv "$srcdir"/Cargo.lock .
diff --git a/testing/android-apkeep/APKBUILD b/testing/android-apkeep/APKBUILD
index 5e555852626..33a720491b9 100644
--- a/testing/android-apkeep/APKBUILD
+++ b/testing/android-apkeep/APKBUILD
@@ -18,6 +18,8 @@ source="https://github.com/EFForg/apkeep/archive/refs/tags/$pkgver/apkeep-$pkgve
options="!check" # no tests
builddir="$srcdir/apkeep-$pkgver"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/apmpkg/APKBUILD b/testing/apmpkg/APKBUILD
index c027e9ca76f..69e8dbf822b 100644
--- a/testing/apmpkg/APKBUILD
+++ b/testing/apmpkg/APKBUILD
@@ -21,6 +21,8 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/Kedap/apmpkg/archive/refs/ta
fix-with-outdated-rust.patch
"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cargo build --release --locked --verbose
}
diff --git a/testing/asciinema-rs/APKBUILD b/testing/asciinema-rs/APKBUILD
index 34fe4be0374..7595959b4e4 100644
--- a/testing/asciinema-rs/APKBUILD
+++ b/testing/asciinema-rs/APKBUILD
@@ -13,6 +13,8 @@ source="https://github.com/LegNeato/asciinema-rs/archive/v$pkgver/asciinema-rs-v
"
options="!check" # fail on 'home'
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cargo build --release --locked
}
diff --git a/testing/asuran-cli/APKBUILD b/testing/asuran-cli/APKBUILD
index adc25239936..826def341d1 100644
--- a/testing/asuran-cli/APKBUILD
+++ b/testing/asuran-cli/APKBUILD
@@ -22,6 +22,7 @@ source="https://gitlab.com/asuran-rs/asuran/-/archive/v$pkgver/asuran-v$pkgver.t
builddir="$srcdir/asuran-v$pkgver"
export LIBSSH2_SYS_USE_PKG_CONFIG=1
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/testing/authenticator-rs/APKBUILD b/testing/authenticator-rs/APKBUILD
index 1f6e581a8a6..c2740288504 100644
--- a/testing/authenticator-rs/APKBUILD
+++ b/testing/authenticator-rs/APKBUILD
@@ -22,6 +22,8 @@ options="net !check" # No tests
# size optimisations
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
RELEASE_VERSION=$pkgver make release-version
make release
diff --git a/testing/bartib/APKBUILD b/testing/bartib/APKBUILD
index f202db26a93..35c9d659ec8 100644
--- a/testing/bartib/APKBUILD
+++ b/testing/bartib/APKBUILD
@@ -10,6 +10,8 @@ license="GPL-3.0-or-later"
makedepends="cargo"
source="$pkgname-$pkgver.tar.gz::https://github.com/nikolassv/bartib/archive/refs/tags/v$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
diff --git a/testing/beancount-language-server/APKBUILD b/testing/beancount-language-server/APKBUILD
index a4ec957aee0..6c5ba5a3521 100644
--- a/testing/beancount-language-server/APKBUILD
+++ b/testing/beancount-language-server/APKBUILD
@@ -11,6 +11,8 @@ makedepends="cargo"
source="https://github.com/polarmutex/beancount-language-server/archive/v$pkgver/beancount-language-server-$pkgver.tar.gz"
options="!check" # no test suite
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/boa-cli/APKBUILD b/testing/boa-cli/APKBUILD
index 24234a709ec..14b4821dc76 100644
--- a/testing/boa-cli/APKBUILD
+++ b/testing/boa-cli/APKBUILD
@@ -13,6 +13,8 @@ makedepends="cargo"
source="https://github.com/boa-dev/boa/archive/refs/tags/v$pkgver/boa-$pkgver.tar.gz"
builddir="$srcdir/boa-$pkgver"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/bore/APKBUILD b/testing/bore/APKBUILD
index 4547e9e60d3..85871c34659 100644
--- a/testing/bore/APKBUILD
+++ b/testing/bore/APKBUILD
@@ -11,6 +11,8 @@ license="MIT"
makedepends="cargo"
source="$pkgname-$pkgver.tar.gz::https://github.com/ekzhang/bore/archive/v$pkgver/bore-$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/cargo-deny/APKBUILD b/testing/cargo-deny/APKBUILD
index 35d61f35665..e1bcc7cd260 100644
--- a/testing/cargo-deny/APKBUILD
+++ b/testing/cargo-deny/APKBUILD
@@ -25,6 +25,8 @@ riscv64)
;;
esac
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/castor/APKBUILD b/testing/castor/APKBUILD
index 3fd1e579a25..8cac176e928 100644
--- a/testing/castor/APKBUILD
+++ b/testing/castor/APKBUILD
@@ -9,6 +9,8 @@ arch="all !s390x !riscv64" # limited by rust/cargo
makedepends="rust cargo gtk+3.0-dev openssl-dev>3"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~julienxx/castor/archive/$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cargo build --release --locked --verbose
}
diff --git a/testing/chim/APKBUILD b/testing/chim/APKBUILD
index afb8ce7247a..02a7bd77759 100644
--- a/testing/chim/APKBUILD
+++ b/testing/chim/APKBUILD
@@ -15,6 +15,8 @@ makedepends="
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/jdxcode/chim/archive/refs/tags/v$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/cicada/APKBUILD b/testing/cicada/APKBUILD
index fb215854937..3d03033d483 100644
--- a/testing/cicada/APKBUILD
+++ b/testing/cicada/APKBUILD
@@ -18,6 +18,8 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/mitnk/cicada/archive/v$pkgve
unbundle-sqlite.patch
"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
diff --git a/testing/cinny/APKBUILD b/testing/cinny/APKBUILD
index 9e25f2d89d3..847bc3d6254 100644
--- a/testing/cinny/APKBUILD
+++ b/testing/cinny/APKBUILD
@@ -33,6 +33,7 @@ _rustdir="$builddir/src-tauri"
options="net !check" # no checks
export CARGO_PROFILE_RELEASE_OPT_LEVEL=2
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/testing/conduit/APKBUILD b/testing/conduit/APKBUILD
index a3c8e377a6d..df028e665ad 100644
--- a/testing/conduit/APKBUILD
+++ b/testing/conduit/APKBUILD
@@ -23,6 +23,8 @@ options="net"
_features="--no-default-features --features=conduit_bin,backend_sqlite"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
diff --git a/testing/desed/APKBUILD b/testing/desed/APKBUILD
index a0e24177aa7..e7066ee5b34 100644
--- a/testing/desed/APKBUILD
+++ b/testing/desed/APKBUILD
@@ -15,6 +15,8 @@ source="https://github.com/SoptikHa2/desed/archive/v$pkgver/desed-$pkgver.tar.gz
Cargo.lock
"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/diskonaut/APKBUILD b/testing/diskonaut/APKBUILD
index faddafff495..21e35fd2b8a 100644
--- a/testing/diskonaut/APKBUILD
+++ b/testing/diskonaut/APKBUILD
@@ -10,6 +10,8 @@ makedepends="cargo"
source="$pkgname-$pkgver.tar.gz::https://github.com/imsnif/diskonaut/archive/refs/tags/$pkgver.tar.gz"
options="net"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
diff --git a/testing/diskus/APKBUILD b/testing/diskus/APKBUILD
index a113e6c5471..ab719ed8d13 100644
--- a/testing/diskus/APKBUILD
+++ b/testing/diskus/APKBUILD
@@ -11,6 +11,8 @@ license="MIT"
makedepends="cargo"
source="$pkgname-$pkgdir.tar.gz::https://github.com/sharkdp/diskus/archive/refs/tags/v$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cargo build --release --locked
}
diff --git a/testing/dotenv-linter/APKBUILD b/testing/dotenv-linter/APKBUILD
index 81886bddb10..3ba577caad2 100644
--- a/testing/dotenv-linter/APKBUILD
+++ b/testing/dotenv-linter/APKBUILD
@@ -10,6 +10,8 @@ license="MIT"
makedepends="cargo"
source="https://github.com/dotenv-linter/dotenv-linter/archive/refs/tags/v$pkgver/dotenv-linter-$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/dum/APKBUILD b/testing/dum/APKBUILD
index 11f8a20a83c..4cb48de5ffb 100644
--- a/testing/dum/APKBUILD
+++ b/testing/dum/APKBUILD
@@ -12,6 +12,8 @@ source="https://github.com/egoist/dum/archive/v$pkgver/dum-$pkgver.tar.gz
strip-env_logger-features.patch
"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/electron-tasje/APKBUILD b/testing/electron-tasje/APKBUILD
index ccea55e3e06..ed8d0268ac8 100644
--- a/testing/electron-tasje/APKBUILD
+++ b/testing/electron-tasje/APKBUILD
@@ -11,6 +11,8 @@ makedepends="cargo"
source="electron_tasje-$pkgver.tar.gz::https://codeberg.org/selfisekai/electron_tasje/archive/v$pkgver.tar.gz"
builddir="$srcdir/electron_tasje"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/element-desktop/APKBUILD b/testing/element-desktop/APKBUILD
index 1bf3456c46f..01b2860c451 100644
--- a/testing/element-desktop/APKBUILD
+++ b/testing/element-desktop/APKBUILD
@@ -57,6 +57,7 @@ export VERSION=$pkgver
export CARGO_PROFILE_RELEASE_OPT_LEVEL=2
export CARGO_PROFILE_RELEASE_STRIP="symbols"
export NODE_OPTIONS="--openssl-legacy-provider"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
msg "Applying patches"
diff --git a/testing/elfx86exts/APKBUILD b/testing/elfx86exts/APKBUILD
index 0006f02bf1d..1a03ff1f2a4 100644
--- a/testing/elfx86exts/APKBUILD
+++ b/testing/elfx86exts/APKBUILD
@@ -12,6 +12,8 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/pkgw/elfx86exts/archive/refs
builddir="$srcdir/$pkgname-$pkgname-$pkgver"
options="net"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/eva/APKBUILD b/testing/eva/APKBUILD
index c02b485809a..1dd443e865c 100644
--- a/testing/eva/APKBUILD
+++ b/testing/eva/APKBUILD
@@ -10,6 +10,8 @@ arch="all !s390x !riscv64" # limited by rust/cargo
makedepends="cargo"
source="https://github.com/nerdypepper/eva/archive/v$pkgver/eva-$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/ffsend/APKBUILD b/testing/ffsend/APKBUILD
index 203b27c304c..2a97766f768 100644
--- a/testing/ffsend/APKBUILD
+++ b/testing/ffsend/APKBUILD
@@ -25,6 +25,8 @@ builddir="$srcdir/$pkgname-v$pkgver"
# The default features with crypto-ring replaced with crypto-openssl.
_cargo_opts="--frozen --no-default-features --features=archive,clipboard,crypto-openssl,history,infer-command,qrcode,send3,urlshortener"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/filite/APKBUILD b/testing/filite/APKBUILD
index 388396a8067..43bb2bacf78 100644
--- a/testing/filite/APKBUILD
+++ b/testing/filite/APKBUILD
@@ -13,6 +13,8 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/raftario/filite/archive/refs
system-sqlite.patch
"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/firecracker/APKBUILD b/testing/firecracker/APKBUILD
index 5f34604bf4f..bf6c25c3e63 100644
--- a/testing/firecracker/APKBUILD
+++ b/testing/firecracker/APKBUILD
@@ -14,6 +14,8 @@ subpackages="
"
source="$pkgname-$pkgver.tar.gz::https://github.com/firecracker-microvm/firecracker/archive/v$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/firefox-developer-edition/APKBUILD b/testing/firefox-developer-edition/APKBUILD
index 70c21416583..db5a9b267eb 100644
--- a/testing/firefox-developer-edition/APKBUILD
+++ b/testing/firefox-developer-edition/APKBUILD
@@ -93,6 +93,7 @@ _clear_vendor_checksums() {
export CFLAGS="$CFLAGS -O2"
export CXXFLAGS="$CXXFLAGS -O2"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/testing/flare/APKBUILD b/testing/flare/APKBUILD
index b4910b7ac58..afb992a84be 100644
--- a/testing/flare/APKBUILD
+++ b/testing/flare/APKBUILD
@@ -25,6 +25,8 @@ source="https://gitlab.com/Schmiddiii/flare/-/archive/$pkgver/flare-$pkgver.tar.
# no tests
options="!check"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/geckodriver/APKBUILD b/testing/geckodriver/APKBUILD
index da8e23faf6e..5b4ad87669b 100644
--- a/testing/geckodriver/APKBUILD
+++ b/testing/geckodriver/APKBUILD
@@ -11,6 +11,8 @@ license="MPL"
makedepends="cargo"
source="$pkgname-$pkgver.tar.gz::https://github.com/mozilla/geckodriver/archive/refs/tags/v$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cargo build --release --bin geckodriver
}
diff --git a/testing/geopard/APKBUILD b/testing/geopard/APKBUILD
index 81b5550b9b7..0f17ab65325 100644
--- a/testing/geopard/APKBUILD
+++ b/testing/geopard/APKBUILD
@@ -20,6 +20,8 @@ makedepends="
source="$pkgname-$pkgver.tar.xz::https://github.com/ranfdev/Geopard/releases/download/v$pkgver/com.ranfdev.Geopard.tar.xz"
options="!check" # no test suite
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
rm -rf "$builddir"/subprojects/blueprint-compiler
diff --git a/testing/gitoxide/APKBUILD b/testing/gitoxide/APKBUILD
index d53e09e60df..0c3cc61bb0d 100644
--- a/testing/gitoxide/APKBUILD
+++ b/testing/gitoxide/APKBUILD
@@ -32,6 +32,8 @@ export CARGO_PROFILE_RELEASE_PANIC="unwind"
_cargo_opts="--frozen --no-default-features --features lean"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/gleam/APKBUILD b/testing/gleam/APKBUILD
index 2cd479027da..73b42aeaf05 100644
--- a/testing/gleam/APKBUILD
+++ b/testing/gleam/APKBUILD
@@ -13,6 +13,8 @@ depends="erlang-dev"
makedepends="cargo"
source="$pkgname-$pkgver-2.tar.gz::https://github.com/gleam-lang/gleam/archive/refs/tags/v$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/gnome-metronome/APKBUILD b/testing/gnome-metronome/APKBUILD
index cce7b1222b9..13bf83f88da 100644
--- a/testing/gnome-metronome/APKBUILD
+++ b/testing/gnome-metronome/APKBUILD
@@ -22,6 +22,8 @@ makedepends="
source="https://gitlab.gnome.org/World/metronome/-/archive/$pkgver/metronome-$pkgver.tar.gz"
builddir="$srcdir/metronome-$pkgver"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
abuild-meson build
meson compile ${JOBS:+-j ${JOBS}} -C build
diff --git a/testing/gobang/APKBUILD b/testing/gobang/APKBUILD
index 81b7ba075a9..953c05e7a37 100644
--- a/testing/gobang/APKBUILD
+++ b/testing/gobang/APKBUILD
@@ -16,6 +16,8 @@ source="https://github.com/TaKO8Ki/gobang/archive/refs/tags/v$_pkgver/gobang-v$_
options="!check" # no test suite
builddir="$srcdir/$pkgname-$_pkgver/"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
diff --git a/testing/gpg-tui/APKBUILD b/testing/gpg-tui/APKBUILD
index a4dc8c5ea7c..5bad5a1d542 100644
--- a/testing/gpg-tui/APKBUILD
+++ b/testing/gpg-tui/APKBUILD
@@ -16,6 +16,8 @@ subpackages="
"
source="https://github.com/orhun/gpg-tui/archive/v$pkgver/gpg-tui-$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cargo build --release --locked
diff --git a/testing/gping/APKBUILD b/testing/gping/APKBUILD
index 93097e49902..57a4d2425c9 100644
--- a/testing/gping/APKBUILD
+++ b/testing/gping/APKBUILD
@@ -11,6 +11,8 @@ makedepends="cargo"
source="https://github.com/orf/gping/archive/gping-v$pkgver/gping-$pkgver.tar.gz"
builddir="$srcdir/gping-gping-v$pkgver"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/grcov/APKBUILD b/testing/grcov/APKBUILD
index 20c5b851f55..ef0231897ea 100644
--- a/testing/grcov/APKBUILD
+++ b/testing/grcov/APKBUILD
@@ -12,6 +12,8 @@ makedepends="cargo"
options="net !check" # Failing due to utf-8 (locale?)
source="$pkgname-$pkgver.tar.gz::https://github.com/mozilla/grcov/archive/v$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/greetd-wlgreet/APKBUILD b/testing/greetd-wlgreet/APKBUILD
index 0c9ee2d6e3c..6057a850ab6 100644
--- a/testing/greetd-wlgreet/APKBUILD
+++ b/testing/greetd-wlgreet/APKBUILD
@@ -24,6 +24,7 @@ builddir="$srcdir/$_projname-$pkgver"
options="!check" # no tests provided
export CARGO_PROFILE_RELEASE_OPT_LEVEL="z"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/testing/grpc-health-check/APKBUILD b/testing/grpc-health-check/APKBUILD
index cc42ab65a58..292956cf096 100644
--- a/testing/grpc-health-check/APKBUILD
+++ b/testing/grpc-health-check/APKBUILD
@@ -9,6 +9,8 @@ license="Apache-2.0"
makedepends="cargo protoc rustfmt"
source="$pkgname-$pkgver.tar.gz::https://github.com/paypizza/grpc-health-check/archive/$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cargo fetch --target="$CTARGET"
diff --git a/testing/gst-plugins-rs/APKBUILD b/testing/gst-plugins-rs/APKBUILD
index 658fa159817..5010953ff33 100644
--- a/testing/gst-plugins-rs/APKBUILD
+++ b/testing/gst-plugins-rs/APKBUILD
@@ -26,6 +26,7 @@ source="https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/archive/$pkgve
options="net !check" # they don't run
export SODIUM_USE_PKG_CONFIG=1
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/testing/habitctl/APKBUILD b/testing/habitctl/APKBUILD
index 510ede6e1e3..05e5765a8ad 100644
--- a/testing/habitctl/APKBUILD
+++ b/testing/habitctl/APKBUILD
@@ -10,6 +10,8 @@ makedepends="cargo"
source="$pkgname-$pkgver.tar.gz::https://github.com/blinry/$pkgname/archive/refs/tags/$pkgver.tar.gz"
options="!check" # no tests provided
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/helvum/APKBUILD b/testing/helvum/APKBUILD
index a027fa668ee..f1da3b85bfb 100644
--- a/testing/helvum/APKBUILD
+++ b/testing/helvum/APKBUILD
@@ -12,6 +12,8 @@ makedepends="bash cargo desktop-file-utils meson clang-dev glib-dev gtk4.0-dev p
source="https://gitlab.freedesktop.org/pipewire/helvum/-/archive/$pkgver/helvum-$pkgver.tar.gz"
options="!check" # no test suite
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
abuild-meson . output
meson compile ${JOBS:+-j ${JOBS}} -C output
diff --git a/testing/hex/APKBUILD b/testing/hex/APKBUILD
index e1219b5baba..7c0d3e328f8 100644
--- a/testing/hex/APKBUILD
+++ b/testing/hex/APKBUILD
@@ -10,6 +10,8 @@ license="MIT"
makedepends="cargo"
source="$pkgname-$pkgver.tar.gz::https://github.com/sitkevij/hex/archive/refs/tags/v$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cargo build --release --locked
}
diff --git a/testing/horust/APKBUILD b/testing/horust/APKBUILD
index 94c93c8c06c..f2590e7dbf0 100644
--- a/testing/horust/APKBUILD
+++ b/testing/horust/APKBUILD
@@ -17,6 +17,8 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/FedericoPonzi/Horust/archive
"
builddir="$srcdir/Horust-$pkgver"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/htmlq/APKBUILD b/testing/htmlq/APKBUILD
index bb85f5177d6..e2a7e6ad647 100644
--- a/testing/htmlq/APKBUILD
+++ b/testing/htmlq/APKBUILD
@@ -11,6 +11,8 @@ options="!check" # no test suite
makedepends="cargo"
source="https://github.com/mgdm/htmlq/archive/v$pkgver/htmlq-$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cargo build --release --locked
}
diff --git a/testing/hwatch/APKBUILD b/testing/hwatch/APKBUILD
index fc27564d361..ea0346c99ac 100644
--- a/testing/hwatch/APKBUILD
+++ b/testing/hwatch/APKBUILD
@@ -16,6 +16,8 @@ subpackages="
source="https://github.com/blacknon/hwatch/archive/refs/tags/$pkgver/hwatch-$pkgver.tar.gz"
options="!check" # no tests provided
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/hyperlink/APKBUILD b/testing/hyperlink/APKBUILD
index 40b224560a5..b93c773e6ba 100644
--- a/testing/hyperlink/APKBUILD
+++ b/testing/hyperlink/APKBUILD
@@ -11,6 +11,8 @@ license="MIT"
makedepends="cargo"
source="$pkgname-$pkgver.tar.gz::https://github.com/untitaker/hyperlink/archive/refs/tags/$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/i3status-rust/APKBUILD b/testing/i3status-rust/APKBUILD
index 5ae321294e6..2e204bff409 100644
--- a/testing/i3status-rust/APKBUILD
+++ b/testing/i3status-rust/APKBUILD
@@ -22,6 +22,8 @@ provides="i3status-rs=$pkgver-r$pkgrel"
subpackages="$pkgname-doc"
source="https://github.com/greshake/i3status-rust/archive/refs/tags/v$pkgver/i3status-rust-v$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
diff --git a/testing/imageflow/APKBUILD b/testing/imageflow/APKBUILD
index 09ef23d702e..11ab9a81e0f 100644
--- a/testing/imageflow/APKBUILD
+++ b/testing/imageflow/APKBUILD
@@ -16,6 +16,8 @@ subpackages="$pkgname-server:_server
$pkgname-tool:_tool
"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
# Workaround for environment consistency checks in build
touch .git
diff --git a/testing/innernet/APKBUILD b/testing/innernet/APKBUILD
index 5c6c0f1c330..370e3dae83d 100644
--- a/testing/innernet/APKBUILD
+++ b/testing/innernet/APKBUILD
@@ -20,6 +20,8 @@ subpackages="$pkgname-openrc $pkgname-doc $pkgname-bash-completion $pkgname-fish
[ "$CARCH" = riscv64 ] && options="$options textrels"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
diff --git a/testing/jaq/APKBUILD b/testing/jaq/APKBUILD
index c5aa643a355..bcb961812c7 100644
--- a/testing/jaq/APKBUILD
+++ b/testing/jaq/APKBUILD
@@ -10,6 +10,8 @@ license="MIT"
makedepends="cargo"
source="https://github.com/01mf02/jaq/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/java-libsignal-client/APKBUILD b/testing/java-libsignal-client/APKBUILD
index 3d2caeeaf20..789399936cd 100644
--- a/testing/java-libsignal-client/APKBUILD
+++ b/testing/java-libsignal-client/APKBUILD
@@ -21,6 +21,8 @@ builddir="$srcdir/libsignal-$pkgver/java"
# tests succeed, but gradle aborts with exit value 134. have to further investigate later
options="!check"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
./gradlew --no-daemon :client:jar
}
diff --git a/testing/jp/APKBUILD b/testing/jp/APKBUILD
index e4df63fef5c..c6e6bb98499 100644
--- a/testing/jp/APKBUILD
+++ b/testing/jp/APKBUILD
@@ -18,6 +18,8 @@ case "$CARCH" in
riscv64) options="$options textrels" ;;
esac
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/jrsonnet-cli/APKBUILD b/testing/jrsonnet-cli/APKBUILD
index 56e9ed287f1..b7e802285cb 100644
--- a/testing/jrsonnet-cli/APKBUILD
+++ b/testing/jrsonnet-cli/APKBUILD
@@ -12,6 +12,8 @@ makedepends="cargo"
source="https://github.com/CertainLach/jrsonnet/archive/refs/tags/v$pkgver/jrsonnet-v$pkgver.tar.gz"
builddir="$srcdir/jrsonnet-$pkgver"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/kak-lsp/APKBUILD b/testing/kak-lsp/APKBUILD
index 0d2a8cf8ab9..cdee34867c2 100644
--- a/testing/kak-lsp/APKBUILD
+++ b/testing/kak-lsp/APKBUILD
@@ -10,6 +10,8 @@ license="Unlicense OR MIT"
makedepends="cargo"
source="$pkgname-$pkgver.tar.gz::https://github.com/kak-lsp/kak-lsp/archive/v$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/kbs2/APKBUILD b/testing/kbs2/APKBUILD
index 74e3fee2a91..fa99bade49b 100644
--- a/testing/kbs2/APKBUILD
+++ b/testing/kbs2/APKBUILD
@@ -15,6 +15,8 @@ subpackages="
"
source="$pkgname-$pkgver.tar.gz::https://github.com/woodruffw/kbs2/archive/refs/tags/v$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
diff --git a/testing/lapce/APKBUILD b/testing/lapce/APKBUILD
index 9fbd46c7ed9..a07e952a848 100644
--- a/testing/lapce/APKBUILD
+++ b/testing/lapce/APKBUILD
@@ -84,6 +84,8 @@ _cargo_features="
lang-zig
"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/laze/APKBUILD b/testing/laze/APKBUILD
index 2394d9e5438..7a1940dc6ac 100644
--- a/testing/laze/APKBUILD
+++ b/testing/laze/APKBUILD
@@ -23,6 +23,8 @@ riscv64)
;;
esac
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
diff --git a/testing/librespot/APKBUILD b/testing/librespot/APKBUILD
index ba63e2a30f2..67e2840b6c4 100644
--- a/testing/librespot/APKBUILD
+++ b/testing/librespot/APKBUILD
@@ -16,6 +16,8 @@ source="librespot-$pkgver.tar.gz::https://github.com/librespot-org/librespot/arc
$pkgname.confd
"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/lighthouse/APKBUILD b/testing/lighthouse/APKBUILD
index fea96a89305..9e399c8f988 100644
--- a/testing/lighthouse/APKBUILD
+++ b/testing/lighthouse/APKBUILD
@@ -25,6 +25,7 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/sigp/lighthouse/archive/v$pk
export OPENSSL_NO_VENDOR=true
export RUSTFLAGS="$RUSTFLAGS -L /usr/lib/"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/testing/lsd/APKBUILD b/testing/lsd/APKBUILD
index d62fce11fa9..85aa40ef5ec 100644
--- a/testing/lsd/APKBUILD
+++ b/testing/lsd/APKBUILD
@@ -11,6 +11,8 @@ makedepends="cargo"
source="https://github.com/Peltoche/$pkgname/archive/refs/tags/$pkgver/lsd-$pkgver.tar.gz"
options="net" # needed for downloading dependencies
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cargo build --release --locked
}
diff --git a/testing/lumins/APKBUILD b/testing/lumins/APKBUILD
index 19f1910bc2e..c8c1d7ac2e0 100644
--- a/testing/lumins/APKBUILD
+++ b/testing/lumins/APKBUILD
@@ -12,6 +12,8 @@ makedepends="cargo"
source="$pkgname-$pkgver.tar.gz::https://github.com/wchang22/LuminS/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/LuminS-$pkgver"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cargo build --release --locked
}
diff --git a/testing/macchina/APKBUILD b/testing/macchina/APKBUILD
index 637c094543d..9222eef381d 100644
--- a/testing/macchina/APKBUILD
+++ b/testing/macchina/APKBUILD
@@ -13,6 +13,8 @@ options="net"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Macchina-CLI/macchina/archive/refs/tags/v$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
diff --git a/testing/mdcat/APKBUILD b/testing/mdcat/APKBUILD
index 99bd9051820..ed86ac87e6a 100644
--- a/testing/mdcat/APKBUILD
+++ b/testing/mdcat/APKBUILD
@@ -24,6 +24,8 @@ riscv64)
;;
esac
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
diff --git a/testing/navi/APKBUILD b/testing/navi/APKBUILD
index eedc1fef078..c545b2d4115 100644
--- a/testing/navi/APKBUILD
+++ b/testing/navi/APKBUILD
@@ -23,6 +23,7 @@ source="https://github.com/denisidoro/navi/archive/v$pkgver/navi-$pkgver.tar.gz
[ $CARCH = "riscv64" ] && options="$options textrels"
export NAVI_CONFIG="/etc/xdg/navi/config.yaml"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/testing/nitrocli/APKBUILD b/testing/nitrocli/APKBUILD
index 7380dd96a2b..becf9d43100 100644
--- a/testing/nitrocli/APKBUILD
+++ b/testing/nitrocli/APKBUILD
@@ -15,6 +15,8 @@ source="https://github.com/d-e-s-o/nitrocli/archive/v$pkgver/nitrocli-$pkgver.ta
src-tests-run.rs-use-python3.patch
"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
export USE_SYSTEM_LIBNITROKEY=1
cargo build --release --locked
diff --git a/testing/nixpacks/APKBUILD b/testing/nixpacks/APKBUILD
index 2237da4c4be..f3942350f1a 100644
--- a/testing/nixpacks/APKBUILD
+++ b/testing/nixpacks/APKBUILD
@@ -10,6 +10,8 @@ license="MIT"
makedepends="cargo"
source="https://github.com/railwayapp/nixpacks/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cargo build --release
}
diff --git a/testing/nsh/APKBUILD b/testing/nsh/APKBUILD
index f1c94f5acbb..c88eb14d200 100644
--- a/testing/nsh/APKBUILD
+++ b/testing/nsh/APKBUILD
@@ -15,6 +15,8 @@ install="$pkgname.post-install $pkgname.pre-deinstall"
subpackages="$pkgname-dbg"
source="https://github.com/nuta/nsh/archive/v$pkgver/nsh-$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/nushell/APKBUILD b/testing/nushell/APKBUILD
index f85089c492b..94e08fc9166 100644
--- a/testing/nushell/APKBUILD
+++ b/testing/nushell/APKBUILD
@@ -20,6 +20,8 @@ export CARGO_PROFILE_RELEASE_LTO="fat"
# Temporarily allow textrels on riscv64
[ "$CARCH" = "riscv64" ] && options="$options textrels"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
diff --git a/testing/ouch/APKBUILD b/testing/ouch/APKBUILD
index 121922ec7e2..5da0b878731 100644
--- a/testing/ouch/APKBUILD
+++ b/testing/ouch/APKBUILD
@@ -10,6 +10,8 @@ license="MIT"
makedepends="cargo"
source="$pkgname-$pkgver.tar.gz::https://github.com/ouch-org/ouch/archive/refs/tags/$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cargo build --release --locked
}
diff --git a/testing/pastel/APKBUILD b/testing/pastel/APKBUILD
index a5532804df7..bec8d77cadc 100644
--- a/testing/pastel/APKBUILD
+++ b/testing/pastel/APKBUILD
@@ -16,6 +16,8 @@ subpackages="
"
options="net" # fetch crates
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
export SHELL_COMPLETIONS_DIR="$builddir/completions"
cargo build --release
diff --git a/testing/pidif/APKBUILD b/testing/pidif/APKBUILD
index 145b923eb40..c9c75e25c6c 100644
--- a/testing/pidif/APKBUILD
+++ b/testing/pidif/APKBUILD
@@ -14,6 +14,8 @@ makedepends="
"
source="$pkgname-$pkgver.tar.gz::https://github.com/bjesus/pidif/archive/refs/tags/$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
@@ -35,4 +37,3 @@ package() {
sha512sums="
ba067c8c98cc5db6c3412dd7793ba901863f9ca6fa2cf828d28597c87614c3ba7f57e74d7ba85267e28c569d30e3ab12424eae96e963092d5bfb6fd720d40ca9 pidif-0.1.tar.gz
"
-
diff --git a/testing/pijul/APKBUILD b/testing/pijul/APKBUILD
index 62d966e1c06..72d49e8e9ea 100644
--- a/testing/pijul/APKBUILD
+++ b/testing/pijul/APKBUILD
@@ -21,6 +21,7 @@ builddir="$srcdir/$pkgname-$_pkgver"
options="net"
export SODIUM_USE_PKG_CONFIG=1
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/testing/piping-server/APKBUILD b/testing/piping-server/APKBUILD
index 3948fff5968..8aa016db9a8 100644
--- a/testing/piping-server/APKBUILD
+++ b/testing/piping-server/APKBUILD
@@ -15,6 +15,8 @@ source="https://github.com/nwtgck/piping-server-rust/archive/v$pkgver/piping-ser
"
builddir="$srcdir/piping-server-rust-$pkgver"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cargo build --release --locked
}
diff --git a/testing/please/APKBUILD b/testing/please/APKBUILD
index aa46dfbc95b..9fa100c363e 100644
--- a/testing/please/APKBUILD
+++ b/testing/please/APKBUILD
@@ -15,6 +15,8 @@ options="suid" # Required to call setuid with target uids
builddir="$srcdir/$pkgname-v$pkgver"
subpackages="$pkgname-doc"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cargo build --release --locked
}
diff --git a/testing/pulumi-watch/APKBUILD b/testing/pulumi-watch/APKBUILD
index 10b6bb560b0..2c0b65f471c 100644
--- a/testing/pulumi-watch/APKBUILD
+++ b/testing/pulumi-watch/APKBUILD
@@ -12,6 +12,8 @@ builddir="$srcdir/watchutil-rs-$pkgver"
[ "$CARCH" = "riscv64" ] && options="$options textrels"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/pw-volume/APKBUILD b/testing/pw-volume/APKBUILD
index ac1711ee7c6..2b373d545ff 100644
--- a/testing/pw-volume/APKBUILD
+++ b/testing/pw-volume/APKBUILD
@@ -15,6 +15,7 @@ source="https://github.com/smasher164/pw-volume/archive/v$pkgver/pw-volume-$pkgv
options="!check" # no tests provided
export CARGO_PROFILE_RELEASE_OPT_LEVEL="z"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/testing/py-spy/APKBUILD b/testing/py-spy/APKBUILD
index 331601c4df6..28a4eb83da0 100644
--- a/testing/py-spy/APKBUILD
+++ b/testing/py-spy/APKBUILD
@@ -17,6 +17,8 @@ subpackages="
"
source="$pkgname-$pkgver.tar.gz::https://github.com/benfred/py-spy/archive/v$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cargo build --release --locked
diff --git a/testing/py3-mitmproxy-wireguard/APKBUILD b/testing/py3-mitmproxy-wireguard/APKBUILD
index 8d8446a16a5..9b80fbb4f82 100644
--- a/testing/py3-mitmproxy-wireguard/APKBUILD
+++ b/testing/py3-mitmproxy-wireguard/APKBUILD
@@ -11,6 +11,8 @@ makedepends="cargo maturin py3-installer"
source="https://github.com/decathorpe/mitmproxy_wireguard/archive/$pkgver/py3-mitmproxy-wireguard-$pkgver.tar.gz"
builddir="$srcdir/mitmproxy_wireguard-$pkgver"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/py3-tokenizers/APKBUILD b/testing/py3-tokenizers/APKBUILD
index 6d5400bda6a..6841848fa17 100644
--- a/testing/py3-tokenizers/APKBUILD
+++ b/testing/py3-tokenizers/APKBUILD
@@ -21,6 +21,8 @@ source="https://github.com/huggingface/tokenizers/archive/refs/tags/python-v$pkg
builddir="$srcdir/tokenizers-python-v$pkgver/bindings/python"
options="net !check" # requires pulling test data
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
gpep517 build-wheel \
--wheel-dir dist \
diff --git a/testing/rage/APKBUILD b/testing/rage/APKBUILD
index 7fbc8412499..3ebdf5ea873 100644
--- a/testing/rage/APKBUILD
+++ b/testing/rage/APKBUILD
@@ -18,6 +18,8 @@ source="https://github.com/str4d/rage/archive/v$pkgver/rage-$pkgver.tar.gz
fix-build-32bit.patch
"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/rathole/APKBUILD b/testing/rathole/APKBUILD
index 2aa9f9ae050..52c707615b5 100644
--- a/testing/rathole/APKBUILD
+++ b/testing/rathole/APKBUILD
@@ -10,6 +10,8 @@ arch="all !s390x !riscv64" # blocked by rust/cargo
makedepends="cargo openssl-dev"
source="https://github.com/rapiz1/rathole/archive/v$pkgver/rathole-$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
diff --git a/testing/rav1e/APKBUILD b/testing/rav1e/APKBUILD
index d207bb380c1..3752521bd2d 100644
--- a/testing/rav1e/APKBUILD
+++ b/testing/rav1e/APKBUILD
@@ -21,6 +21,7 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/xiph/rav1e/archive/v$pkgver.
export CARGO_PROFILE_RELEASE_INCREMENTAL=false
export CARGO_PROFILE_RELEASE_DEBUG=false
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/testing/rbw/APKBUILD b/testing/rbw/APKBUILD
index 7b95891294e..6071668765b 100644
--- a/testing/rbw/APKBUILD
+++ b/testing/rbw/APKBUILD
@@ -19,6 +19,8 @@ export CARGO_HOME="$srcdir"/cargo
# Reduce size of the binaries.
# 9.1M -> 4.3M
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
diff --git a/testing/rdedup/APKBUILD b/testing/rdedup/APKBUILD
index 0be504e03e3..c91e4f61c0f 100644
--- a/testing/rdedup/APKBUILD
+++ b/testing/rdedup/APKBUILD
@@ -10,6 +10,8 @@ license="MPL-2.0"
makedepends="cargo clang-dev libsodium-dev openssl-dev>3 xz-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/dpc/rdedup/archive/v$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cargo build --release --locked
}
diff --git a/testing/read-it-later/APKBUILD b/testing/read-it-later/APKBUILD
index bb8931efa5e..9d2034efdb9 100755
--- a/testing/read-it-later/APKBUILD
+++ b/testing/read-it-later/APKBUILD
@@ -18,6 +18,8 @@ source="read-it-later-692cf638e1284bcf31031421e6951c767bed6139.tar.gz::https://g
builddir="$srcdir/read-it-later-692cf638e1284bcf31031421e6951c767bed6139"
options="!check" # no tests
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
abuild-meson . output
meson compile ${JOBS:+-j ${JOBS}} -C output
diff --git a/testing/rezolus/APKBUILD b/testing/rezolus/APKBUILD
index 71feb940892..09ac2d97504 100644
--- a/testing/rezolus/APKBUILD
+++ b/testing/rezolus/APKBUILD
@@ -21,6 +21,8 @@ source="https://github.com/twitter/rezolus/archive/v$pkgver/rezolus-$pkgver.tar.
$pkgname.logrotate
"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/riemann-cli/APKBUILD b/testing/riemann-cli/APKBUILD
index bdd07d5c0c1..8b86c385c92 100644
--- a/testing/riemann-cli/APKBUILD
+++ b/testing/riemann-cli/APKBUILD
@@ -17,6 +17,8 @@ source="https://github.com/borntyping/rust-riemann_client/archive/v$pkgver/$pkgn
"
builddir="$srcdir/$_projname-$pkgver"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cp "$srcdir"/Cargo.lock "$builddir"/
diff --git a/testing/ripasso-cursive/APKBUILD b/testing/ripasso-cursive/APKBUILD
index 95b90c4c4c4..50dc00f7e47 100644
--- a/testing/ripasso-cursive/APKBUILD
+++ b/testing/ripasso-cursive/APKBUILD
@@ -20,6 +20,8 @@ source="https://github.com/cortex/ripasso/archive/release-$pkgver.tar.gz"
builddir="$srcdir/$_pkgrelname-release-$pkgver"
options="net"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
diff --git a/testing/rome/APKBUILD b/testing/rome/APKBUILD
index e2fe76674ef..255c0720c90 100644
--- a/testing/rome/APKBUILD
+++ b/testing/rome/APKBUILD
@@ -11,6 +11,8 @@ makedepends="cargo"
source="https://github.com/rome/tools/archive/cli/v$pkgver/rome-$pkgver.tar.gz"
builddir="$srcdir/tools-cli-v$pkgver"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/rosenpass/APKBUILD b/testing/rosenpass/APKBUILD
index 5c2800845d4..583ccf3297e 100644
--- a/testing/rosenpass/APKBUILD
+++ b/testing/rosenpass/APKBUILD
@@ -11,6 +11,8 @@ arch="all !armv7 !armhf !riscv64 "
makedepends="cargo clang-dev cmake libsodium-dev linux-headers"
source="https://github.com/rosenpass/rosenpass/archive/v$pkgver/rosenpass-$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/rpg-cli/APKBUILD b/testing/rpg-cli/APKBUILD
index 410cfe060ee..679283919eb 100644
--- a/testing/rpg-cli/APKBUILD
+++ b/testing/rpg-cli/APKBUILD
@@ -10,6 +10,8 @@ arch="all !s390x !riscv64" # blocked by rust/cargo
makedepends="cargo"
source="https://github.com/facundoolano/rpg-cli/archive/$pkgver/rpg-cli-$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cargo build --release --locked
}
diff --git a/testing/rss-email/APKBUILD b/testing/rss-email/APKBUILD
index c2b80c94f31..b6c08a15b2a 100644
--- a/testing/rss-email/APKBUILD
+++ b/testing/rss-email/APKBUILD
@@ -16,6 +16,8 @@ source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~witcher/rss-email/archive/v$
builddir="$srcdir/$pkgname-v$pkgver"
options="!check" # no tests
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/ruff/APKBUILD b/testing/ruff/APKBUILD
index 3308ad47b96..5ccecd08f03 100644
--- a/testing/ruff/APKBUILD
+++ b/testing/ruff/APKBUILD
@@ -17,6 +17,7 @@ subpackages="
source="https://github.com/charliermarsh/ruff/archive/v$pkgver/ruff-$pkgver.tar.gz"
export CARGO_PROFILE_RELEASE_OPT_LEVEL=2
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/testing/rust-bindgen/APKBUILD b/testing/rust-bindgen/APKBUILD
index 1a5a296a311..401aabcc891 100644
--- a/testing/rust-bindgen/APKBUILD
+++ b/testing/rust-bindgen/APKBUILD
@@ -14,6 +14,8 @@ options="net !check" # no test
[ "$CARCH" = "riscv64" ] && options="$options textrels"
source="$pkgname-$pkgver.tar.gz::https://github.com/rust-lang/rust-bindgen/archive/v$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
diff --git a/testing/rust-script/APKBUILD b/testing/rust-script/APKBUILD
index 2872d8ba528..96c9604a57c 100644
--- a/testing/rust-script/APKBUILD
+++ b/testing/rust-script/APKBUILD
@@ -16,6 +16,8 @@ riscv64)
;;
esac
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/rustdesk-server/APKBUILD b/testing/rustdesk-server/APKBUILD
index 002b9047062..d5eb3032f8a 100644
--- a/testing/rustdesk-server/APKBUILD
+++ b/testing/rustdesk-server/APKBUILD
@@ -21,6 +21,8 @@ source="
hbbs.confd
"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/rustic/APKBUILD b/testing/rustic/APKBUILD
index 42e197dee34..74bdb147ccf 100644
--- a/testing/rustic/APKBUILD
+++ b/testing/rustic/APKBUILD
@@ -17,6 +17,8 @@ subpackages="
"
source="https://github.com/rustic-rs/rustic/archive/v$pkgver/rustic-$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/rustscan/APKBUILD b/testing/rustscan/APKBUILD
index 7be74f35829..ccab5f17a22 100644
--- a/testing/rustscan/APKBUILD
+++ b/testing/rustscan/APKBUILD
@@ -17,6 +17,8 @@ source="https://github.com/RustScan/RustScan/archive/$pkgver/rustscan-$pkgver.ta
options="net"
builddir="$srcdir/RustScan-$pkgver"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/scryer-prolog/APKBUILD b/testing/scryer-prolog/APKBUILD
index 0eaf81bcd21..4552ea905a6 100644
--- a/testing/scryer-prolog/APKBUILD
+++ b/testing/scryer-prolog/APKBUILD
@@ -27,7 +27,7 @@ export OPENSSL_NO_VENDOR=1
export CARGO_FEATURE_USE_SYSTEM_LIBS=1
export SODIUM_USE_PKG_CONFIG=1
-# optimise size
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/testing/sd/APKBUILD b/testing/sd/APKBUILD
index 7fe99fb05d6..6f278226a38 100644
--- a/testing/sd/APKBUILD
+++ b/testing/sd/APKBUILD
@@ -17,6 +17,7 @@ subpackages="$pkgname-doc
"
export CARGO_HOME="$srcdir"/cargo
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
build() {
cargo build \
diff --git a/testing/sequoia-chameleon-gnupg/APKBUILD b/testing/sequoia-chameleon-gnupg/APKBUILD
index d0b7b13eddb..ea9382f7f5b 100644
--- a/testing/sequoia-chameleon-gnupg/APKBUILD
+++ b/testing/sequoia-chameleon-gnupg/APKBUILD
@@ -18,6 +18,8 @@ source="https://gitlab.com/sequoia-pgp/sequoia-chameleon-gnupg/-/archive/v$pkgve
builddir="$srcdir/$pkgname-v$pkgver"
options="!check" # bunch of failures against gpg cli
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/sequoia-sqv/APKBUILD b/testing/sequoia-sqv/APKBUILD
index 4547d815013..ba158c16542 100644
--- a/testing/sequoia-sqv/APKBUILD
+++ b/testing/sequoia-sqv/APKBUILD
@@ -21,6 +21,8 @@ riscv64)
;;
esac
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/shotman/APKBUILD b/testing/shotman/APKBUILD
index 45ea852c02f..22467794e34 100644
--- a/testing/shotman/APKBUILD
+++ b/testing/shotman/APKBUILD
@@ -25,6 +25,8 @@ riscv64)
;;
esac
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/signal-desktop/APKBUILD b/testing/signal-desktop/APKBUILD
index 382090aedc5..e11dc707be0 100644
--- a/testing/signal-desktop/APKBUILD
+++ b/testing/signal-desktop/APKBUILD
@@ -104,6 +104,7 @@ export CPPFLAGS="$CPPFLAGS -D__DATE__= -D__TIME__= -D__TIMESTAMP__="
export CARGO_PROFILE_RELEASE_OPT_LEVEL=2
export CARGO_PROFILE_RELEASE_STRIP="symbols"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
export RUSTFLAGS="$RUSTFLAGS -C linker=clang -C link-arg=-fuse-ld=lld"
export YARN_CACHE_FOLDER="$srcdir/.yarn"
diff --git a/testing/so/APKBUILD b/testing/so/APKBUILD
index 788cfc56ee1..893dbf8574e 100644
--- a/testing/so/APKBUILD
+++ b/testing/so/APKBUILD
@@ -11,6 +11,8 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/samtay/so/archive/refs/tags/
[ "$CARCH" = "riscv64" ] && options="$options textrels"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/solanum/APKBUILD b/testing/solanum/APKBUILD
index f483c1578e6..731e2e68677 100644
--- a/testing/solanum/APKBUILD
+++ b/testing/solanum/APKBUILD
@@ -30,6 +30,8 @@ source="
"
builddir="$srcdir/Solanum-$_gitrev"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
abuild-meson . output
meson compile ${JOBS:+-j ${JOBS}} -C output
diff --git a/testing/spotify-player/APKBUILD b/testing/spotify-player/APKBUILD
index 3a0005286b6..1ccc61e722a 100644
--- a/testing/spotify-player/APKBUILD
+++ b/testing/spotify-player/APKBUILD
@@ -16,6 +16,8 @@ makedepends="
"
source="$pkgname-$pkgver.tar.gz::https://github.com/aome510/spotify-player/archive/v$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/spotify-tui/APKBUILD b/testing/spotify-tui/APKBUILD
index db3ded84718..69091d8587a 100644
--- a/testing/spotify-tui/APKBUILD
+++ b/testing/spotify-tui/APKBUILD
@@ -12,6 +12,8 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/Rigellute/spotify-tui/archiv
openssl3.patch
"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/spotifyd/APKBUILD b/testing/spotifyd/APKBUILD
index 40014e3513b..58bfb5f5c7a 100644
--- a/testing/spotifyd/APKBUILD
+++ b/testing/spotifyd/APKBUILD
@@ -25,6 +25,8 @@ source="https://github.com/Spotifyd/spotifyd/archive/v$pkgver/spotifyd-$pkgver.t
spotifyd.conf
"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/svgbob/APKBUILD b/testing/svgbob/APKBUILD
index 464eac9b0d7..40f1119da9b 100644
--- a/testing/svgbob/APKBUILD
+++ b/testing/svgbob/APKBUILD
@@ -10,6 +10,8 @@ license="Apache-2.0"
makedepends="cargo"
source="$pkgname-$pkgver.tar.gz::https://github.com/ivanceras/svgbob/archive/$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
diff --git a/testing/swayhide/APKBUILD b/testing/swayhide/APKBUILD
index b2dbf4dace2..358e433aa6e 100644
--- a/testing/swayhide/APKBUILD
+++ b/testing/swayhide/APKBUILD
@@ -10,6 +10,8 @@ license="GPL-3.0-only"
makedepends="cargo"
source="https://github.com/NomisIV/swayhide/archive/v$pkgver/swayhide-v$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
diff --git a/testing/swc/APKBUILD b/testing/swc/APKBUILD
index 71ba20b79b4..b6d51d040ba 100644
--- a/testing/swc/APKBUILD
+++ b/testing/swc/APKBUILD
@@ -13,6 +13,8 @@ source="https://github.com/swc-project/swc/archive/v$pkgver/$pkgname-$pkgver.tar
builddir="$srcdir/$pkgname-$pkgver/bindings"
options="!check" # TODO: run tests
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/swhkd/APKBUILD b/testing/swhkd/APKBUILD
index 19097caa252..da32074595b 100644
--- a/testing/swhkd/APKBUILD
+++ b/testing/swhkd/APKBUILD
@@ -21,6 +21,8 @@ riscv64)
;;
esac
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/swww/APKBUILD b/testing/swww/APKBUILD
index a9a5b6a2126..6830795b230 100644
--- a/testing/swww/APKBUILD
+++ b/testing/swww/APKBUILD
@@ -16,6 +16,8 @@ subpackages="
source="$pkgname-$pkgver.tar.gz::https://github.com/Horus645/swww/archive/refs/tags/v$pkgver.tar.gz"
options="!check" # Requires the binary to be available in PATH
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/synapse-bt/APKBUILD b/testing/synapse-bt/APKBUILD
index 51d35b62270..5c125ff214b 100644
--- a/testing/synapse-bt/APKBUILD
+++ b/testing/synapse-bt/APKBUILD
@@ -18,6 +18,8 @@ source="synapse-bt-$pkgver.tar.gz::https://github.com/Luminarys/synapse/archive/
"
builddir="$srcdir"/synapse-$pkgver
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cargo build --release --all --locked
}
diff --git a/testing/systeroid/APKBUILD b/testing/systeroid/APKBUILD
index 617f63f093c..4408faedaef 100644
--- a/testing/systeroid/APKBUILD
+++ b/testing/systeroid/APKBUILD
@@ -19,6 +19,8 @@ case $CARCH in
armhf|ppc64le) options="!check" ;;
esac
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
diff --git a/testing/tauri-cli/APKBUILD b/testing/tauri-cli/APKBUILD
index a724af7588b..b7a78004ac4 100644
--- a/testing/tauri-cli/APKBUILD
+++ b/testing/tauri-cli/APKBUILD
@@ -11,6 +11,8 @@ makedepends="cargo"
source="$pkgname-$pkgver.tar.gz::https://github.com/tauri-apps/tauri/releases/download/cli.rs-v$pkgver/cli.rs-$pkgver.crate"
options="net !check" # no tests
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
diff --git a/testing/tealdeer/APKBUILD b/testing/tealdeer/APKBUILD
index b01ede2f899..22a7fb2a830 100644
--- a/testing/tealdeer/APKBUILD
+++ b/testing/tealdeer/APKBUILD
@@ -19,6 +19,8 @@ source="
[ "$CARCH" = "riscv64" ] && options="$options textrels"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/teapot-tools/APKBUILD b/testing/teapot-tools/APKBUILD
index d1ce9fcee2e..2c47bfc4848 100644
--- a/testing/teapot-tools/APKBUILD
+++ b/testing/teapot-tools/APKBUILD
@@ -20,6 +20,8 @@ makedepends="
source="teapot_tools-$pkgver.tar.gz::https://codeberg.org/selfisekai/teapot_tools/archive/v$pkgver.tar.gz"
builddir="$srcdir/teapot_tools"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/texlab/APKBUILD b/testing/texlab/APKBUILD
index 70372536eac..c5af3b3233a 100644
--- a/testing/texlab/APKBUILD
+++ b/testing/texlab/APKBUILD
@@ -19,6 +19,7 @@ case "$CARCH" in
esac
export CARGO_PROFILE_RELEASE_PANIC="unwind"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/testing/topgrade/APKBUILD b/testing/topgrade/APKBUILD
index 30877aad9ed..46adc103bfe 100644
--- a/testing/topgrade/APKBUILD
+++ b/testing/topgrade/APKBUILD
@@ -17,6 +17,8 @@ subpackages="
"
source="topgrade-$pkgver.tar.gz::https://github.com/topgrade-rs/topgrade/archive/refs/tags/v$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
diff --git a/testing/twiggy/APKBUILD b/testing/twiggy/APKBUILD
index 9e11ae9cc18..447d2ef6a93 100644
--- a/testing/twiggy/APKBUILD
+++ b/testing/twiggy/APKBUILD
@@ -10,6 +10,8 @@ license="Apache-2.0"
makedepends="cargo"
source="$pkgname-$pkgver.tar.gz::https://github.com/rustwasm/twiggy/archive/$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cargo build --release --locked
}
diff --git a/testing/udpt/APKBUILD b/testing/udpt/APKBUILD
index 217c60a296a..f9ce0ecbcde 100644
--- a/testing/udpt/APKBUILD
+++ b/testing/udpt/APKBUILD
@@ -19,6 +19,8 @@ source="https://github.com/naim94a/udpt/archive/udpt-$pkgver/udpt-$pkgver.tar.gz
"
builddir="$srcdir/udpt-udpt-$pkgver"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cargo build --release --locked
}
diff --git a/testing/uutils-coreutils/APKBUILD b/testing/uutils-coreutils/APKBUILD
index 4ab535d2595..0feae744414 100644
--- a/testing/uutils-coreutils/APKBUILD
+++ b/testing/uutils-coreutils/APKBUILD
@@ -25,6 +25,8 @@ armhf)
;;
esac
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/vaultwarden/APKBUILD b/testing/vaultwarden/APKBUILD
index e9efe677732..090762da759 100644
--- a/testing/vaultwarden/APKBUILD
+++ b/testing/vaultwarden/APKBUILD
@@ -27,6 +27,8 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/dani-garcia/vaultwarden/arch
$pkgname.initd
$pkgname.confd"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/verco/APKBUILD b/testing/verco/APKBUILD
index 9bb1af76d9a..1a9d3900fc1 100644
--- a/testing/verco/APKBUILD
+++ b/testing/verco/APKBUILD
@@ -11,6 +11,8 @@ makedepends="cargo"
options="!check" # No tests
source="$pkgname-$pkgver.tar.gz::https://github.com/vamolessa/verco/archive/refs/tags/v$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
diff --git a/testing/video-trimmer/APKBUILD b/testing/video-trimmer/APKBUILD
index e8f65b64228..36a0fa41528 100644
--- a/testing/video-trimmer/APKBUILD
+++ b/testing/video-trimmer/APKBUILD
@@ -21,6 +21,8 @@ subpackages="$pkgname-lang"
source="https://gitlab.gnome.org/YaLTeR/video-trimmer/-/archive/v$pkgver/video-trimmer-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
abuild-meson . output
meson compile -C output
diff --git a/testing/vivid/APKBUILD b/testing/vivid/APKBUILD
index 200966dfa24..4ad13417396 100644
--- a/testing/vivid/APKBUILD
+++ b/testing/vivid/APKBUILD
@@ -10,6 +10,7 @@ makedepends="cargo"
source="$pkgname-$pkgver.tar.gz::https://github.com/sharkdp/vivid/archive/refs/tags/v$pkgver.tar.gz"
export CARGO_PROFILE_RELEASE_OPT_LEVEL="z"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/testing/vocage/APKBUILD b/testing/vocage/APKBUILD
index 84e886a1704..76861be113a 100644
--- a/testing/vocage/APKBUILD
+++ b/testing/vocage/APKBUILD
@@ -10,6 +10,8 @@ makedepends="rust cargo"
source="$pkgname-$pkgver.tar.gz::https://github.com/proycon/vocage/archive/refs/tags/v$pkgver.tar.gz"
options="!check" # No test suite / unit tests
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cargo build --release --locked
}
diff --git a/testing/wasmtime/APKBUILD b/testing/wasmtime/APKBUILD
index 1c0742fee25..b63132b5109 100644
--- a/testing/wasmtime/APKBUILD
+++ b/testing/wasmtime/APKBUILD
@@ -19,6 +19,8 @@ options="!check net"
# net: fetch dependencies
# check: custom_limiter_detect_os_oom_failure fails with oom for some reason
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/watchexec/APKBUILD b/testing/watchexec/APKBUILD
index fb4ff5e5f2d..8374518e166 100644
--- a/testing/watchexec/APKBUILD
+++ b/testing/watchexec/APKBUILD
@@ -26,6 +26,8 @@ arm*|aarch64|ppc64le)
;;
esac
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
diff --git a/testing/waylevel/APKBUILD b/testing/waylevel/APKBUILD
index a097233d438..f3cafbd3aa0 100644
--- a/testing/waylevel/APKBUILD
+++ b/testing/waylevel/APKBUILD
@@ -17,6 +17,7 @@ makedepends="
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~shinyzenith/waylevel/archive/$pkgver.tar.gz"
export CARGO_PROFILE_RELEASE_OPT_LEVEL="z"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/testing/weggli/APKBUILD b/testing/weggli/APKBUILD
index 33ba9d17ddc..b39af8bd0c4 100644
--- a/testing/weggli/APKBUILD
+++ b/testing/weggli/APKBUILD
@@ -10,6 +10,8 @@ arch="all !s390x !riscv64" # blocked by rust/cargo
makedepends="cargo"
source="https://github.com/googleprojectzero/weggli/archive/v$pkgver/weggli-$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/wk-adblock/APKBUILD b/testing/wk-adblock/APKBUILD
index 7b9fe9d1c4b..681cf43826b 100644
--- a/testing/wk-adblock/APKBUILD
+++ b/testing/wk-adblock/APKBUILD
@@ -18,6 +18,7 @@ builddir="$srcdir/webextension-adblocker-$_commit"
# optimise size
export CARGO_FEATURE_USE_SYSTEM_LIBS=1
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
diff --git a/testing/wpaperd/APKBUILD b/testing/wpaperd/APKBUILD
index c4cf34625b9..87f6e8d6393 100644
--- a/testing/wpaperd/APKBUILD
+++ b/testing/wpaperd/APKBUILD
@@ -17,6 +17,8 @@ subpackages="
source="https://github.com/danyspin97/wpaperd/archive/$pkgver/wpaperd-$pkgver.tar.gz"
options="!check" # no test suite
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/xplr/APKBUILD b/testing/xplr/APKBUILD
index 8df7114a8d5..4fcc7909c77 100644
--- a/testing/xplr/APKBUILD
+++ b/testing/xplr/APKBUILD
@@ -14,6 +14,8 @@ source="
remove-vendored-lua.patch
"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/youki/APKBUILD b/testing/youki/APKBUILD
index c1430f0fbf4..fec31ed8737 100644
--- a/testing/youki/APKBUILD
+++ b/testing/youki/APKBUILD
@@ -26,6 +26,8 @@ options="!check" # FIXME: some tests fail
# Disable systemd_cgroups
_cargo_opts='--frozen --no-default-features --features=libcgroups/v1,libcgroups/v2'
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
prepare() {
default_prepare
diff --git a/testing/zkgroup/APKBUILD b/testing/zkgroup/APKBUILD
index 632eea57955..b6063120aaa 100644
--- a/testing/zkgroup/APKBUILD
+++ b/testing/zkgroup/APKBUILD
@@ -10,6 +10,8 @@ license="GPL-3.0-only"
makedepends="cargo"
source="$pkgname-$pkgver.tar.gz::https://github.com/signalapp/zkgroup/archive/v$pkgver.tar.gz"
+export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
+
build() {
cargo build --release --locked
}