void-packages/srcpkgs/s/template
2022-01-08 18:40:08 -03:00

29 lines
740 B
Bash

# Template file for 's'
pkgname=s
version=0.6.4
revision=1
build_helper=qemu
build_style=go
go_import_path=github.com/zquestz/s
hostmakedepends="git"
short_desc="Web search from the terminal"
maintainer="Daniel Lewan <vision360.daniel@gmail.com>"
license="MIT"
homepage="https://github.com/zquestz/s"
distfiles="https://github.com/zquestz/s/archive/v${version}.tar.gz"
checksum=5829a18da40cb5a936f32240b4244d2a0543cb85dc3d5e013ae5aa08557c148f
post_build() {
s_cli=$(find $GOPATH/bin -name s)
vtargetrun $s_cli --completion bash >s.bash
vtargetrun $s_cli --completion fish >s.fish
vtargetrun $s_cli --completion zsh >s.zsh
}
post_install() {
vlicense LICENSE
vcompletion s.bash bash
vcompletion s.fish fish
vcompletion s.zsh zsh
}