blob: 3de06431d04dc06f911da5076c094466ae80fcd3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/mkpkg
# description: Audit Cargo.lock files for crates with security vulnerabilities
# url: https://github.com/rustsec/rustsec
name=cargo-audit
version=0.22.2
release=1
depends=(rust)
source=(https://github.com/rustsec/rustsec/archive/refs/tags/$name/v$version.tar.gz)
renames=($name-$version.tar.gz)
sha256sums=(
"85c368a4d166b2cc4972108d50abc5fad605013b65098929a06122439488beb5"
)
build() {
export CARGO_HTTP_CAINFO=/etc/ssl/cert.pem
export RUSTFLAGS="-C target-feature=-crt-static"
cd rustsec-$name-v$version
cargo build --release -p cargo-audit
install -Dm755 target/release/cargo-audit $PKG/usr/bin/cargo-audit
}
signify() {
untrusted comment: public key
RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}
# vim: filetype=sh
|