mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=cargo-bloat
|
|
pkgver=0.11.1
|
|
pkgrel=1
|
|
pkgdesc="Find out what takes most of the space in your Rust executable"
|
|
url="https://github.com/RazrFalcon/cargo-bloat"
|
|
arch="x86_64 armv7 armhf aarch64 x86 ppc64le" # limited by rust/cargo
|
|
license="MIT"
|
|
depends="cargo"
|
|
source="https://github.com/RazrFalcon/cargo-bloat/archive/v$pkgver/$pkgname-$pkgver.tar.gz
|
|
minimize-size.patch
|
|
"
|
|
_cargo_opts="--frozen --features regex-filter"
|
|
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo build $_cargo_opts --release
|
|
}
|
|
|
|
check() {
|
|
cargo test $_cargo_opts
|
|
}
|
|
|
|
package() {
|
|
cargo install $_cargo_opts --offline --path . --root="$pkgdir/usr"
|
|
rm "$pkgdir"/usr/.crates*
|
|
}
|
|
|
|
sha512sums="
|
|
e6f33c99a80473123929424f91782cc7d364f5b09de7d5aca55058c1e811b6fb68db241c89f9de9ce1b8688cd6d9ebb8d7dc2077f324d31603f1a9c40fac6f5c cargo-bloat-0.11.1.tar.gz
|
|
d9442983e29139c6d2b4ab260a889a2751c16d6786e27e879076e048b3fd8f1ec3d3f8076464b462c20559d662f0370466e1d70c89e4f81353539ae54fb98e89 minimize-size.patch
|
|
"
|