From dc1a44011944c4d65b3915bf6f5f67541544298e 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..89c48e9287eb --- /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="zenobit " +license="MIT" +homepage="https://github.com/charmbracelet/gum" +changelog="https://github.com/charmbracelet/gum/releases" +distfiles="https://github.com/charmbracelet/gum/archive/refs/tags/v${version}.tar.gz" +checksum=27dab5c8ca25e09794d54d7610064bea37a4e0c471d4e0a8a6835727a27a9a0f + +post_install() { + vlicense LICENSE + + _cli=${DESTDIR}/usr/bin/gum + for shell in bash fish zsh; do + vtargetrun $_cli completion $shell > gum.${shell} + vcompletion gum.${shell} $shell + done + + vtargetrun $_cli man > gum.1 + vman gum.1 +}