void-packages/srcpkgs/tealdeer/template

25 lines
863 B
Bash

# Template file for 'tealdeer'
pkgname=tealdeer
version=1.7.0
revision=1
# uses rustls/ring
archs="x86_64* aarch64* i686* armv[67]*"
build_style=cargo
short_desc="Very fast implementation of tldr in Rust"
maintainer="Filip Rojek <filip@filiprojek.cz>"
license="Apache-2.0 OR MIT"
homepage="https://github.com/dbrgn/tealdeer"
changelog="https://raw.githubusercontent.com/dbrgn/tealdeer/main/CHANGELOG.md"
distfiles="https://github.com/dbrgn/tealdeer/archive/refs/tags/v${version}.tar.gz"
checksum=940fe96a44571f395ac8349e5cba7ddb9231ce526bee07a9eb68f02c32f7da7b
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 completion/bash_tealdeer bash
vcompletion completion/fish_tealdeer fish
vcompletion completion/zsh_tealdeer zsh
}