mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-09 16:14:15 +02:00
53 lines
1.4 KiB
Text
53 lines
1.4 KiB
Text
# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
|
|
# Maintainer: Matthias Ahouansou <matthias@ahouansou.cz>
|
|
pkgname=cargo-deny
|
|
pkgver=0.18.2
|
|
pkgrel=0
|
|
pkgdesc="Cargo plugin for linting your dependencies"
|
|
url="https://github.com/EmbarkStudios/cargo-deny"
|
|
arch="all !s390x"
|
|
license="MIT OR Apache-2.0"
|
|
makedepends="
|
|
cargo
|
|
cargo-auditable
|
|
"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/EmbarkStudios/cargo-deny/archive/refs/tags/$pkgver.tar.gz"
|
|
options="net"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
# remove upstream's compile flags for musl target
|
|
rm -r .cargo/
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --release --frozen
|
|
}
|
|
|
|
check() {
|
|
# These tests require the advisory repos to be cloned via git
|
|
cargo test --frozen -- \
|
|
--skip detects_unmaintained \
|
|
--skip detects_unsound \
|
|
--skip detects_vulnerabilities \
|
|
--skip downgrades_lint_levels \
|
|
--skip fails_on_stale_advisory_database \
|
|
--skip fetches_with_git \
|
|
--skip fetches_with_gix \
|
|
--skip warns_on_ignored_and_withdrawn \
|
|
--skip warns_on_index_failures
|
|
}
|
|
|
|
package() {
|
|
install -Dm 755 target/release/cargo-deny "$pkgdir"/usr/bin/cargo-deny
|
|
|
|
for l in APACHE MIT
|
|
do
|
|
install -Dm 644 LICENSE-"$l" "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE-"$l"
|
|
done
|
|
}
|
|
|
|
sha512sums="
|
|
90eaa0b0b07ceab96214538f07dff3d29ffcd6124ea2be4270a9f002e2fbbf1cd3c44f81a9d61f49949ac65e8bb4053f7a78488ffd0d8fe4c2402983282a7f9b cargo-deny-0.18.2.tar.gz
|
|
"
|