void-packages/srcpkgs/tealdeer/template

27 lines
882 B
Bash

# Template file for 'tealdeer'
pkgname=tealdeer
version=1.3.0
revision=2
build_style=cargo
hostmakedepends="pkg-config"
makedepends="libressl-devel"
depends="libressl"
short_desc="Very fast implementation of tldr in Rust"
maintainer="jcgruenhage <jan.christian@gruenhage.xyz>"
license="MIT, Apache-2.0"
homepage="https://github.com/dbrgn/tealdeer"
changelog="https://raw.githubusercontent.com/dbrgn/tealdeer/v${version}/CHANGELOG.md"
distfiles="https://github.com/dbrgn/tealdeer/archive/v${version}.tar.gz"
checksum=d384176263c1377b241f4e41f8efd564052e506af00e014240f3874419e187e0
alternatives="tldr:/usr/bin/tldr:/usr/bin/tealdeer"
pre_build() {
cargo update --package openssl-sys --precise 0.9.58
}
post_install() {
vlicense LICENSE-MIT
vlicense LICENSE-APACHE
mv ${DESTDIR}/usr/bin/tldr ${DESTDIR}/usr/bin/tealdeer
vinstall zsh_tealdeer 644 usr/share/zsh/site-functions
}