29 lines
726 B
Bash
29 lines
726 B
Bash
# Template file for 'hut'
|
|
pkgname=hut
|
|
version=0.4.0
|
|
revision=2
|
|
build_style=go
|
|
build_helper=qemu
|
|
go_import_path="git.sr.ht/~emersion/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/~emersion/hut"
|
|
changelog="https://git.sr.ht/~emersion/hut/log"
|
|
distfiles="https://git.sr.ht/~emersion/hut/archive/v${version}.tar.gz"
|
|
checksum=f25ab4452e4622f404a6fa5713e8505302bfcee4dd3a8dfe76f1fc4c05688c09
|
|
|
|
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
|
|
}
|