# Template file for 'cargo-deny'
pkgname=cargo-deny
version=0.6.2
revision=1
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=d24452b344fcb370d246ad3a0711ef27805b862bcc1ca89e1db1fdecd798dbf5

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
}
