void-packages/srcpkgs/cargo-deny/template

34 lines
1.2 KiB
Bash

# Template file for 'cargo-deny'
pkgname=cargo-deny
version=0.13.5
revision=1
_adv_commit="222ccf84ef7d733a6eac71f694a5e14b4d0d0289"
build_style=cargo
configure_args="--no-default-features"
hostmakedepends="pkg-config"
makedepends="openssl-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"
changelog="https://raw.githubusercontent.com/EmbarkStudios/cargo-deny/main/CHANGELOG.md"
distfiles="https://github.com/EmbarkStudios/cargo-deny/archive/${version}.tar.gz"
checksum=aebfff46cf510fc9a85ce0059e88792c6467f44c17dd29badce50a13af47e4f7
if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
broken="bitvec crate unimplemented for big endian"
fi
pre_check() {
rm -rf tests/advisory-db/github.com-2f857891b7f43c59
/usr/libexec/chroot-git/git clone https://github.com/rustsec/advisory-db.git tests/advisory-db/github.com-2f857891b7f43c59
cd tests/advisory-db/github.com-2f857891b7f43c59
/usr/libexec/chroot-git/git checkout ${_adv_commit}
}
post_install() {
vlicense LICENSE-APACHE
vlicense LICENSE-MIT
vdoc README.md
}