mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-25 10:32:20 +01:00
38 lines
1013 B
Plaintext
38 lines
1013 B
Plaintext
# Maintainer: Hugo Osvaldo Barrera <hugo@whynothugo.nl>
|
|
pkgname=hyperlink
|
|
pkgver=0.1.29
|
|
pkgrel=0
|
|
pkgdesc="Very fast link checker for CI"
|
|
url="https://github.com/untitaker/hyperlink"
|
|
# riscv64: fails to build libc crate
|
|
# armhf: builds freeze and time out
|
|
arch="all !riscv64 !armhf"
|
|
license="MIT"
|
|
makedepends="cargo cargo-auditable"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/untitaker/hyperlink/archive/refs/tags/$pkgver.tar.gz"
|
|
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --release --frozen
|
|
}
|
|
|
|
check() {
|
|
# Tests try to execute the compiled binary. Without `--release`, they
|
|
# attempt to run the debug binary, which is not present and tests fail.
|
|
cargo test --release --frozen
|
|
}
|
|
|
|
package() {
|
|
install -Dm 0755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
|
|
}
|
|
|
|
sha512sums="
|
|
8b669987c8591a5edf5da7caa15bb4ef4169bf868cd5c2097670021fbb77cb39d0222f91aec9e61a4b55c8ab210d4bb7b2ffb2f4bca26893bb772477eb9d03e8 hyperlink-0.1.29.tar.gz
|
|
"
|