void-packages/srcpkgs/tldr/template

24 lines
696 B
Bash

# Template file for 'tldr'
pkgname=tldr
version=1.0.0.alpha
revision=1
_version=${version/.alpha/-alpha}
wrksrc=$pkgname-$_version
build_style=go
go_import_path="github.com/isacikgoz/tldr"
go_package="./cmd/tldr"
depends="git"
short_desc="Fast and interactive TLDR client written in Go"
maintainer="Nathan Owens <ndowens04@gmail.com>"
license="MIT"
homepage="https://isacikgoz.me/tldr/"
distfiles="https://github.com/isacikgoz/tldr/archive/v${_version}.tar.gz"
checksum=d40e1c602d84acc67cdee3b9bed001fb8ec198c7049c1d05eb071ab05af66c19
alternatives="tldr:tldr:/usr/bin/gtldr"
conflicts="tealdeer<=1.2.0_1"
post_install() {
mv ${DESTDIR}/usr/bin/tldr ${DESTDIR}/usr/bin/gtldr
vlicense LICENSE
}