# Template file for 'hut'
pkgname=hut
version=0.6.0
revision=1
build_style=go
build_helper=qemu
go_import_path="git.sr.ht/~xenrox/hut"
hostmakedepends="scdoc"
short_desc="CLI tool for sr.ht"
maintainer="Dakota Walsh <kota@nilsu.org>"
license="AGPL-3.0-only"
homepage="https://git.sr.ht/~xenrox/hut"
changelog="https://git.sr.ht/~xenrox/hut/log"
distfiles="https://git.sr.ht/~xenrox/hut/archive/v${version}.tar.gz"
checksum=f6abe54b433c30557c49aa41d351ec97ef24b4bee3f9dbc91e7db8f366592f99

post_install() {
	hut=$(find $GOPATH/bin -name hut)
	for sh in bash fish zsh; do
		vtargetrun $hut completion $sh > hut.$sh
		vcompletion hut.$sh $sh
	done

	vlicense LICENSE

	scdoc < doc/hut.1.scd > doc/hut.1
	vman doc/hut.1
}
