mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-05 11:47:11 +02:00
39 lines
1.1 KiB
Text
39 lines
1.1 KiB
Text
# Contributor: lauren n. liberda <lauren@selfisekai.rocks>
|
|
# Maintainer: lauren n. liberda <lauren@selfisekai.rocks>
|
|
pkgname=cargo-crev
|
|
pkgver=0.26.3
|
|
pkgrel=0
|
|
pkgdesc="Cryptographically verifiable code review system for cargo"
|
|
url="https://github.com/crev-dev/cargo-crev"
|
|
# s390x: failing tests
|
|
arch="all !s390x"
|
|
license="MPL-2.0 OR MIT OR Apache-2.0"
|
|
makedepends="cargo cargo-auditable openssl-dev"
|
|
source="https://github.com/crev-dev/cargo-crev/archive/v$pkgver/cargo-crev-$pkgver.tar.gz"
|
|
|
|
export OPENSSL_NO_VENDOR=1
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --frozen --release -p cargo-crev --no-default-features
|
|
}
|
|
|
|
check() {
|
|
# Increase stack size to avoid stack overflow while compiling 'p384'.
|
|
export RUST_MIN_STACK="4194304"
|
|
|
|
cargo test --frozen --no-default-features
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 target/release/cargo-crev "$pkgdir"/usr/bin/cargo-crev
|
|
}
|
|
|
|
sha512sums="
|
|
7c731555cbb401a7babf6ec5a4af6f0ce447ee10993fc8141e5c5a30fd5907a98eebc368898ebf689a9ffd6eccbbd22386dd239483b610b820f7a901d734f70e cargo-crev-0.26.3.tar.gz
|
|
"
|