diff --git a/srcpkgs/cheat/template b/srcpkgs/cheat/template index 8bcd28e9c0a328..4b6e479ddb9701 100644 --- a/srcpkgs/cheat/template +++ b/srcpkgs/cheat/template @@ -1,8 +1,9 @@ # Template file for 'cheat' pkgname=cheat -version=4.4.2 -revision=2 +version=5.1.0 +revision=1 build_style=go +build_helper="qemu" go_import_path="github.com/cheat/cheat" go_package="./cmd/cheat" short_desc="Create and view interactive cheatsheets on the command-line" @@ -10,12 +11,19 @@ maintainer="Orphaned " license="MIT" homepage="https://github.com/cheat/cheat" distfiles="https://github.com/cheat/cheat/archive/refs/tags/${version}.tar.gz" -checksum=6968ffdebb7c2a8390dea45f97884af3c623cda6c2d36c4c04443ed2454da431 +checksum=5ef8864dacb5b37268d7d26cd01f74b99a33b2e5eb5b290e4221358410c99db4 + +pre_check() { + export EDITOR=ed + export PAGER=cat + export PATH="/usr/libexec/chroot-git:$PATH" +} post_install() { + for shell in bash fish zsh; do + vtargetrun "${DESTDIR}/usr/bin/cheat" --completion bash >"cheat.${shell}" + vcompletion "cheat.${shell}" "${shell}" + done vman doc/cheat.1 - vcompletion scripts/cheat.bash bash cheat - vcompletion scripts/cheat.fish fish cheat - vcompletion scripts/cheat.zsh zsh cheat vlicense LICENSE.txt }