1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 19:55:26 +03:00
aports/testing/hyperlink/APKBUILD
psykose 39f6fef713 */*: cargo fetch with --target
this does not download deps that won't be used for the default build
target (the ctarget we are building for implicitly).
this makes quite a few fetches faster.. because a ton of crates download
a 10mb "windows-sys" that is never used, amongst other things.

maybe breaks a thing or two.
2023-02-11 16:56:41 +01:00

36 lines
986 B
Text

# Maintainer: Hugo Osvaldo Barrera <hugo@whynothugo.nl>
pkgname=hyperlink
pkgver=0.1.27
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"
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 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="
f1be7f41519696ae23f285d8c4d505c03a459aa3820900cd7cdbca100b039a70368be89a2ea1e6c1da2a6ac0bf19c1ebb8d0b50459a80e112370ca855459fd08 hyperlink-0.1.27.tar.gz
"