void-packages/srcpkgs/tealdeer/template
2020-10-06 14:14:17 +02:00

25 lines
850 B
Bash

# Template file for 'tealdeer'
pkgname=tealdeer
version=1.4.1
revision=1
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=eaf42fe17be751985cbf46c170ef623fcbd36028c88c2e70823492a9335a4a8e
alternatives="tldr:/usr/bin/tldr:/usr/bin/tealdeer"
post_install() {
vlicense LICENSE-MIT
vlicense LICENSE-APACHE
mv ${DESTDIR}/usr/bin/tldr ${DESTDIR}/usr/bin/tealdeer
vcompletion bash_tealdeer bash
vcompletion fish_tealdeer fish
vcompletion zsh_tealdeer zsh
}