# Template file for 'fend'
pkgname=fend
version=1.5.8
revision=1
build_style=cargo
configure_args="--no-default-features --features=native-tls"
make_install_args="--path cli"
hostmakedepends="pkg-config"
makedepends="openssl-devel"
short_desc="Arbitrary-precision unit-aware calculator"
maintainer="tranzystorekk <tranzystorek.io@protonmail.com>"
license="MIT"
homepage="https://printfn.github.io/fend/"
changelog="https://raw.githubusercontent.com/printfn/fend/main/CHANGELOG.md"
distfiles="https://github.com/printfn/fend/archive/refs/tags/v${version}.tar.gz
 https://github.com/printfn/fend/releases/download/v${version}/fend.1>fend_man_${version}"
checksum="2c53922b83b693c852581942ddcf8e02e1bcd691f30c00e8066cdd6ab2070b86
 a754f3908bfc3226646711cffcfa584337674655823815e03be9955c80bf8559"
skip_extraction="fend_man_${version}"

post_install() {
	vlicense LICENSE.md
	vman ${XBPS_SRCDISTDIR}/${pkgname}-${version}/fend_man_${version} fend.1
}
