28 lines
850 B
Bash
28 lines
850 B
Bash
# Template file for 'rust-cargo-audit'
|
|
pkgname=rust-cargo-audit
|
|
version=0.13.1
|
|
revision=2
|
|
wrksrc="${pkgname/rust-/}-${version}"
|
|
build_style=cargo
|
|
hostmakedepends="pkg-config"
|
|
makedepends="openssl-devel libssh2-devel zlib-devel"
|
|
short_desc="Audit Cargo.lock for crates with security vulnerabilities"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="Apache-2.0, MIT"
|
|
homepage="https://rustsec.org"
|
|
distfiles="https://static.crates.io/crates/cargo-audit/cargo-audit-${version}.crate"
|
|
checksum=5c04240c97606ef511e5df2e26eb8c7c30031d015613c1f01c59068b50da7df2
|
|
|
|
if [ "$XBPS_TARGET_WORDSIZE" = "32" -a "$XBPS_TARGET_ENDIAN" = "be" ]; then
|
|
broken="smartstring crate does not build on 32-bit BE architectures"
|
|
fi
|
|
|
|
pre_build() {
|
|
cargo update --package openssl-sys --precise 0.9.58
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE-APACHE
|
|
vlicense LICENSE-MIT
|
|
}
|