From 207439d5d7b2c30e2bcffd658f4254343115a544 Mon Sep 17 00:00:00 2001 From: zenobit Date: Thu, 16 Mar 2023 06:32:36 +0100 Subject: [PATCH] New package: gum-0.9.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..fd8085db72dc --- /dev/null +++ b/srcpkgs/gum/template @@ -0,0 +1,28 @@ +# Template file for 'gum' +pkgname=gum +version=0.9.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=27dab5c8ca25e09794d54d7610064bea37a4e0c471d4e0a8a6835727a27a9a0f + +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 +}