# Maintainer: Hugo Osvaldo Barrera pkgname=hyperlink pkgver=0.1.31 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=" 848e0bfca852c3bb58f191657f89174f33aa64c2dd41421a64b163633142093af864abd445a4cf1fe07b7fe33b45a701e02f35817e0341903541f30e47d36101 hyperlink-0.1.31.tar.gz 6ef21529ce1161a4dd22f029f530463cc5f4e1c77a191876fdc63cfee1e8a453ae25a7b8eafc45218cdc7d7d2156d51dd0d87c8d37e21f4a7e6c1e2b51f70af2 bump-getrandom.patch "