From 0ce0af3080735e4bce8430713d06f6dc38d99165 Mon Sep 17 00:00:00 2001 From: akhil Date: Tue, 2 Aug 2022 19:17:52 +0530 Subject: [PATCH] New package: gum-0.4.0 --- srcpkgs/gum/template | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 srcpkgs/gum/template diff --git a/srcpkgs/gum/template b/srcpkgs/gum/template new file mode 100644 index 000000000000..6d8b5ca73fc5 --- /dev/null +++ b/srcpkgs/gum/template @@ -0,0 +1,28 @@ +# Template file for 'gum' +pkgname=gum +version=0.4.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=504a92791dacaa06e025a7fea32f96f9d4f67b26a38b1a07eb2703e5519cea1b + +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 +}