Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions srcpkgs/cheat/template
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
# 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"
maintainer="Orphaned <orphan@voidlinux.org>"
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
Comment thread
elbachir-one marked this conversation as resolved.
vlicense LICENSE.txt
}