mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-21 16:47:00 +02:00
50 lines
1.6 KiB
Bash
50 lines
1.6 KiB
Bash
# Template file for 'cargo-deny'
|
|
pkgname=cargo-deny
|
|
version=0.18.2
|
|
revision=1
|
|
_adv_commit="ddccfe8aced779f7b54d27bbe7e122ecb1dda33a"
|
|
_test_adv_commit="1f44d565d81692a44b8c7af8a80f587e19757f8c"
|
|
build_style=cargo
|
|
configure_args="--no-default-features"
|
|
make_check_args="-- --skip=fetches_with_gi"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libzstd-devel"
|
|
short_desc="Cargo plugin to help you manage large dependency graphs"
|
|
maintainer="icp <pangolin@vivaldi.net>"
|
|
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/refs/tags/${version}.tar.gz"
|
|
checksum=bb47741fada886c166e2a697a87fe93fca38ec083db489d404c73bcb0b9d7445
|
|
|
|
if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
|
|
broken="bitvec crate unimplemented for big endian"
|
|
fi
|
|
|
|
if [ "$XBPS_WORDSIZE" = "32" ]; then
|
|
make_check=no # too many failed tests
|
|
fi
|
|
|
|
pre_build() {
|
|
rm .cargo/config.toml # breaks native musl
|
|
}
|
|
|
|
pre_check() {
|
|
export PATH="/usr/libexec/chroot-git:${PATH}"
|
|
|
|
ADV_DB_DIR="tests/advisory-db/advisory-db-3157b0e258782691"
|
|
rmdir $ADV_DB_DIR
|
|
git clone https://github.com/rustsec/advisory-db.git $ADV_DB_DIR
|
|
git -C $ADV_DB_DIR checkout ${_adv_commit}
|
|
|
|
TEST_ADV_DB_DIR="tests/advisory-db/test-advisory-db-c27873b782cceedc"
|
|
rmdir $TEST_ADV_DB_DIR
|
|
git clone https://github.com/EmbarkStudios/test-advisory-db.git $TEST_ADV_DB_DIR
|
|
git -C $TEST_ADV_DB_DIR checkout ${_test_adv_commit}
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE-APACHE
|
|
vlicense LICENSE-MIT
|
|
vdoc README.md
|
|
}
|