From 375b8972b87a80df9abfd28b176738bda140c68d Mon Sep 17 00:00:00 2001 From: icp Date: Wed, 14 Dec 2022 22:43:32 +0530 Subject: [PATCH] glab: update to 1.24.1. --- srcpkgs/glab/template | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/srcpkgs/glab/template b/srcpkgs/glab/template index dd9350b8e41b..1cb62c5f1030 100644 --- a/srcpkgs/glab/template +++ b/srcpkgs/glab/template @@ -1,18 +1,24 @@ # Template file for 'glab' pkgname=glab -version=1.22.0 +version=1.24.1 revision=1 build_style=go +build_helper=qemu go_ldflags="-X main.version=$version" -go_import_path=github.com/profclems/glab +go_import_path=gitlab.com/gitlab-org/cli go_package="${go_import_path}/cmd/glab" short_desc="Command line tool bringing GitLab's features to your command line" maintainer="Enno Boland " license="MIT" homepage="https://gitlab.com/gitlab-org/cli" distfiles="https://gitlab.com/gitlab-org/cli/-/archive/v$version/cli-v$version.tar.gz" -checksum=4d9bceb6818c8bf9f681119dae3a65f1c895fa21e9da6b38e8f88d245f524e10 +checksum=dc942f7806aa417714483bd5323bfcde9eceadd7ed33154f7a77038b416bdd95 post_install() { + local glab=${DESTDIR}/usr/bin/glab + for shell in bash fish zsh; do + vtargetrun ${glab} completion -s ${shell} > glab.${shell} + vcompletion glab.${shell} ${shell} + done vlicense LICENSE }