upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / cargo-supply-chain / trunk / PKGBUILD
blobff3e51d8634e56cd081b4b98ce9bf6b48ca9ea31
1 # Maintainer: George Rawlinson <grawlinson@archlinux.org>
3 pkgname=cargo-supply-chain
4 pkgver=0.3.2
5 pkgrel=1
6 pkgdesc='Gather author, contributor and publisher data on crates in your dependency graph'
7 arch=('x86_64')
8 url='https://github.com/rust-secure-code/cargo-supply-chain'
9 license=('Apache' 'MIT' 'ZLIB')
10 depends=('gcc-libs')
11 makedepends=('rust')
12 options=('!lto')
13 source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate")
14 sha512sums=('1ae7882db47c1fd2b0cbbfb8bd43b1a571bb72bfd5ba3d113102b1fc56d2f8a7ae79d2b700de0d6435b48b0d553d485dd633240934034e50ee10c817d279875e')
15 b2sums=('c196e9b8bd6882c6fa4360f27d623ff91275a0209612a1b74043a9869ead3e21557052d107d15d8daa378e35722ead6a519f5969d5882c63622547d467b6a6b4')
17 prepare() {
18   cd "$pkgname-$pkgver"
20   cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
23 build() {
24   cd "$pkgname-$pkgver"
26   cargo build --release --frozen --all-features
29 check() {
30   cd "$pkgname-$pkgver"
32   cargo test --frozen --all-features
35 package() {
36   cd "$pkgname-$pkgver"
38   # binary
39   install -vDm755 -t "$pkgdir/usr/bin" "target/release/$pkgname"
41   # documentation
42   install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" ./*.md
44   # licenses
45   install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE*