void-packages/srcpkgs/tea/template

27 lines
765 B
Bash

# Template file for 'tea'
pkgname=tea
version=0.9.2
revision=3
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=b5a944de8db7d5af4aa87e9640261c925f094d2b6d26c4faf2701773acab219b
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
}