-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
50 lines (43 loc) · 1.56 KB
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Template file for 'cargo-deny'
pkgname=cargo-deny
version=0.14.24
revision=1
_adv_commit="6ef1d1fd84c57e46253ff16bf7379c115e1062eb"
_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=e5cde78e62af26676c75875abe86119437b8e20537d7062111c423d05a1fc3d0
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/github.com-a946fc29ac602819"
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/github.com-c373669cccc50ac0"
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
}