1 # Maintainer: George Rawlinson <grawlinson@archlinux.org>
3 pkgname=cargo-supply-chain
6 pkgdesc='Gather author, contributor and publisher data on crates in your dependency graph'
8 url='https://github.com/rust-secure-code/cargo-supply-chain'
9 license=('Apache' 'MIT' 'ZLIB')
13 source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate")
14 sha512sums=('1ae7882db47c1fd2b0cbbfb8bd43b1a571bb72bfd5ba3d113102b1fc56d2f8a7ae79d2b700de0d6435b48b0d553d485dd633240934034e50ee10c817d279875e')
15 b2sums=('c196e9b8bd6882c6fa4360f27d623ff91275a0209612a1b74043a9869ead3e21557052d107d15d8daa378e35722ead6a519f5969d5882c63622547d467b6a6b4')
20 cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
26 cargo build --release --frozen --all-features
32 cargo test --frozen --all-features
39 install -vDm755 -t "$pkgdir/usr/bin" "target/release/$pkgname"
42 install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" ./*.md
45 install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE*