From bdae70040fd11331811b92b2333d91aee70d41af Mon Sep 17 00:00:00 2001 From: akhil Date: Tue, 2 Aug 2022 19:17:52 +0530 Subject: [PATCH] New package: gum-0.2.0 Update srcpkgs/gum/template Co-authored-by: Marcin Puc Update srcpkgs/gum/template Co-authored-by: classabbyamp <5366828+classabbyamp@users.noreply.github.com> --- srcpkgs/gum/template | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 srcpkgs/gum/template diff --git a/srcpkgs/gum/template b/srcpkgs/gum/template new file mode 100644 index 000000000000..c7a872142231 --- /dev/null +++ b/srcpkgs/gum/template @@ -0,0 +1,27 @@ +# Template file for 'gum' +pkgname=gum +version=0.2.0 +revision=1 +build_style=go +build_helper=qemu +go_import_path="github.com/charmbracelet/gum" +go_ldflags="-X main.Version=v${version}" +short_desc="Tool for glamorous shell scripts" +maintainer="akhil " +license="MIT" +homepage="https://github.com/charmbracelet/gum" +changelog="https://github.com/charmbracelet/gum/releases" +distfiles="https://${go_import_path}/archive/v${version}.tar.gz" +checksum=85bf131216c5ce7fdfc1c8c72d2eca43d4a57e4ce323792f386317b6bfffb032 +post_install() { + vlicense LICENSE + + _cli=$(find $GOPATH/bin -name $pkgname) + for shell in bash fish zsh; do + vtargetrun $_cli completion $shell > ${pkgname}.${shell} + vcompletion ${pkgname}.${shell} $shell + done + + vtargetrun $_cli man > ${pkgname}.1 + vman ${pkgname}.1 +}