void-packages/srcpkgs/tealdeer/template

25 lines
859 B
Bash

# Template file for 'tealdeer'
pkgname=tealdeer
version=1.6.1
revision=2
# uses rustls/ring
archs="x86_64* aarch64* i686* armv[67]*"
build_style=cargo
short_desc="Very fast implementation of tldr in Rust"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT, Apache-2.0"
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=d42db25a56a72faec173c86192656c5381281dc197171f385fccffd518930430
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
}