mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-06 19:14:48 +02:00
45 lines
1.4 KiB
Text
45 lines
1.4 KiB
Text
maintainer="Paolo Barbolini <paolo.barbolini@m4ss.net>"
|
|
pkgname=cargo-hack
|
|
pkgver=0.6.36
|
|
pkgrel=0
|
|
pkgdesc="Cargo subcommand to provide various options useful for testing and continuous integration."
|
|
url="https://github.com/taiki-e/cargo-hack"
|
|
arch="all"
|
|
license="MIT OR Apache-2.0"
|
|
makedepends="
|
|
cargo
|
|
cargo-auditable
|
|
"
|
|
subpackages="$pkgname-doc"
|
|
# Cargo.lock extracted from https://static.crates.io/crates/cargo-hack/cargo-hack-$pkgver.crate
|
|
source="
|
|
$pkgname-$pkgver.tar.gz::https://github.com/taiki-e/cargo-hack/archive/refs/tags/v$pkgver.tar.gz
|
|
Cargo.lock
|
|
"
|
|
# net: cargo fetch
|
|
# !check: tests expect to be running in a git checkout
|
|
options="net !check"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cp "$srcdir"/Cargo.lock .
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --release --frozen
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 target/release/cargo-hack -t "$pkgdir"/usr/bin/
|
|
|
|
install -Dm 644 README.md -t "$pkgdir"/usr/share/doc/"$pkgname"/
|
|
install -Dm 644 LICENSE-MIT -t "$pkgdir"/usr/share/licenses/"$pkgname"/
|
|
install -Dm 644 LICENSE-APACHE -t "$pkgdir"/usr/share/licenses/"$pkgname"/
|
|
}
|
|
|
|
sha512sums="
|
|
6cdc672034ea6f6f9ba1e31de896e7b240cd4d4f00e19b9eca2019aaf480a7bd2ec6b7e34ce558ad4113e85ed14c73d69f34c59532331295846842e47119ef93 cargo-hack-0.6.36.tar.gz
|
|
6ccb9fe3d813c91cb3d3623e1d416d2ffc85f9fa8a0a07af2ee0123099129c57113a5a1e40c6523f3c277eb8a09ef41fb5f3838e66be44747663a356b028ad5b Cargo.lock
|
|
"
|