mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-16 21:32:22 +01:00
41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
# Maintainer: Hugo Osvaldo Barrera <hugo@whynothugo.nl>
|
|
pkgname=hyperlink
|
|
pkgver=0.1.32
|
|
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
|
|
bump-getrandom.patch
|
|
"
|
|
|
|
|
|
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="
|
|
c5a79963c4d314f532eef0e8fdcdd9398b565c3a656b9f50719e1a60cb233f484409ff60dd9f7a5406a9ef92798c941ac868dc617859e6e55c0475dd58cc558b hyperlink-0.1.32.tar.gz
|
|
6ef21529ce1161a4dd22f029f530463cc5f4e1c77a191876fdc63cfee1e8a453ae25a7b8eafc45218cdc7d7d2156d51dd0d87c8d37e21f4a7e6c1e2b51f70af2 bump-getrandom.patch
|
|
"
|