void-packages/srcpkgs/tea/template

28 lines
779 B
Bash

# Template file for 'tea'
pkgname=tea
version=0.8.0
revision=2
wrksrc=$pkgname
build_style=go
build_helper=qemu
go_import_path=code.gitea.io/tea
depends="git"
short_desc="Command line tool to interact with Gitea"
maintainer="chili-b <dexter.gaonshatford@gmail.com>"
license="MIT"
homepage="https://gitea.com/gitea/tea"
changelog="https://gitea.com/gitea/tea/raw/branch/master/CHANGELOG.md"
distfiles="https://gitea.com/gitea/tea/archive/v${version}.tar.gz"
checksum=6c73c0a7b66cdfd1e5a302257d54df06a3a41eb9bdbfeb547966db431ae23b23
post_install() {
vcompletion contrib/autocomplete.sh bash
vcompletion contrib/autocomplete.zsh zsh
binary=$(find $GOPATH/bin -name $pkgname)
vtargetrun ${binary} shellcompletion fish > tea.fish
vcompletion tea.fish fish
vlicense LICENSE
}