mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 16:06:42 +02:00
45 lines
1.3 KiB
Text
45 lines
1.3 KiB
Text
# Contributor: Orhun Parmaksız <orhunparmaksiz@gmail.com>
|
||
# Maintainer: Orhun Parmaksız <orhunparmaksiz@gmail.com>
|
||
pkgname=lychee
|
||
pkgver=0.18.1
|
||
pkgrel=0
|
||
pkgdesc="Fast, async, resource-friendly link checker written in Rust"
|
||
url=https://lychee.cli.rs
|
||
# !s390x !armhf !riscv64: openssl fails to build
|
||
# loongarch64: blocked by libc crate
|
||
arch="all !s390x !armhf !riscv64 !loongarch64"
|
||
license="MIT OR Apache-2.0"
|
||
makedepends="
|
||
cargo
|
||
cargo-auditable
|
||
perl
|
||
make
|
||
pkgconf
|
||
openssl-dev
|
||
"
|
||
subpackages="$pkgname-doc"
|
||
options="net"
|
||
source="$pkgname-$pkgver.tar.gz::https://github.com/lycheeverse/lychee/archive/lychee-v$pkgver/lychee-$pkgver.tar.gz"
|
||
builddir="$srcdir/$pkgname-$pkgname-v$pkgver"
|
||
|
||
prepare() {
|
||
default_prepare
|
||
cargo fetch --target="$CTARGET" --locked
|
||
}
|
||
|
||
build() {
|
||
cargo auditable build --frozen --release --no-default-features --features rustls-tls
|
||
}
|
||
|
||
check() {
|
||
cargo test --no-default-features --features rustls-tls -- --test-threads 1
|
||
}
|
||
|
||
package() {
|
||
install -Dm 755 "target/release/$pkgname" -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"
|
||
}
|
||
sha512sums="
|
||
f65a3f1349c892df81fd5fffc9295de3dda88b7bdec7c990201020eace8eb9310e0191f2fc2e50d0d954f93c6fecdfdb671406213f5037eb381f1843e708e4e5 lychee-0.18.1.tar.gz
|
||
"
|