# Template file for 'cargo-deny'
pkgname=cargo-deny
version=0.5.2
revision=2
build_style=cargo
hostmakedepends="pkg-config perl"
makedepends="libressl-devel"
short_desc="Cargo plugin to help you manage large dependency graphs"
maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
license="MIT, Apache-2.0"
homepage="https://github.com/EmbarkStudios/cargo-deny"
distfiles="https://github.com/EmbarkStudios/cargo-deny/archive/${version}.tar.gz"
checksum=3b0c44b22abefd115b0d972dfa95401ea904f73e88cba28cb5c148caa5747f4c

if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
	broken="bitvec crate unimplemented for big endian"
fi

pre_build() {
	cargo update --package openssl-sys --precise 0.9.53
}

post_install() {
	vlicense LICENSE-APACHE
	vlicense LICENSE-MIT
	vdoc README.md
}
