# Contributor: Orhun Parmaksız # Maintainer: Orhun Parmaksız pkgname=cargo-machete pkgver=0.5.0 pkgrel=0 pkgdesc="Cargo subcommand for removing unused Rust dependencies" url="https://github.com/bnjbvr/cargo-machete" arch="all" 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=" cd231e90e0d630577e461728c65e1c246048b768f70897808465dce9942a3132ffb09662d43c010fcc4ae4202b052bed1078ff5e8b218fb7465cdebad1034db3 cargo-machete-0.5.0.tar.gz "