# Template file for 'lychee'
pkgname=lychee
version=0.11.1
revision=1
build_style=cargo
make_install_args="--path lychee-bin"
hostmakedepends="pkg-config"
makedepends="openssl-devel"
short_desc="Fast, async, stream-based link checker written in Rust"
maintainer="Stefan Kreutz <mail@skreutz.com>"
license="Apache-2.0, MIT"
homepage="https://lychee.cli.rs"
changelog="https://github.com/lycheeverse/lychee/releases"
distfiles="https://github.com/lycheeverse/lychee/archive/refs/tags/v${version}.tar.gz"
checksum=b5ed41f8c91e888d1aab841df6adb265281344ebf0ac9ab9050b11700fd84d7e

pre_build() {
	cargo update --package spin@0.9.4 --precise 0.9.8
	cargo update --package openssl@0.10.44 --precise 0.10.49
	cargo update --package tempfile@3.3.0 --precise 3.4.0
	cargo update --package openssl-src@111.24.0+1.1.1s --precise 111.25.2+1.1.1t
}

post_install() {
	vlicense LICENSE-APACHE
	vlicense LICENSE-MIT
}
