mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-05 02:27:10 +02:00
41 lines
1.1 KiB
Text
41 lines
1.1 KiB
Text
# Contributor: Orhun Parmaksız <orhunparmaksiz@gmail.com>
|
||
# Maintainer: Orhun Parmaksız <orhunparmaksiz@gmail.com>
|
||
pkgname=cargo-machete
|
||
pkgver=0.7.0
|
||
pkgrel=0
|
||
pkgdesc="Cargo subcommand for removing unused Rust dependencies"
|
||
url="https://github.com/bnjbvr/cargo-machete"
|
||
# loongarch64: blocked by libc crate
|
||
arch="all !loongarch64"
|
||
license="MIT"
|
||
makedepends="
|
||
cargo
|
||
cargo-auditable
|
||
"
|
||
subpackages="$pkgname-doc"
|
||
source="$pkgname-$pkgver.tar.gz::https://github.com/bnjbvr/cargo-machete/archive/v$pkgver.tar.gz"
|
||
options="net" # cargo fetch
|
||
|
||
prepare() {
|
||
default_prepare
|
||
|
||
cargo fetch --target="$CTARGET" --locked
|
||
}
|
||
|
||
build() {
|
||
cargo auditable build --release --frozen
|
||
}
|
||
|
||
check() {
|
||
cargo test --frozen
|
||
}
|
||
|
||
package() {
|
||
install -Dm 755 "target/release/cargo-machete" -t "$pkgdir/usr/bin"
|
||
install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
|
||
install -Dm 644 LICENSE.md -t "$pkgdir/usr/share/licenses/$pkgname"
|
||
}
|
||
|
||
sha512sums="
|
||
217f6544e82f577187cd9472453f4459298eb9a9ab80abd79804ccdcde123a018b80d36ff51132bce3f8f3a2ffea5997dfaf1901e67513d97b0bb4a37b2ce5e2 cargo-machete-0.7.0.tar.gz
|
||
"
|