From 046a1517a15c3e230caefea2ab1284750b2b90a4 Mon Sep 17 00:00:00 2001 From: Malte Gejr Date: Tue, 9 Aug 2022 10:15:45 +0200 Subject: [PATCH] glab: update to 1.22.0. --- srcpkgs/glab/template | 11 +++++++---- srcpkgs/glab/update | 3 +++ 2 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 srcpkgs/glab/update diff --git a/srcpkgs/glab/template b/srcpkgs/glab/template index 93a65d57a0e2..3de125b19628 100644 --- a/srcpkgs/glab/template +++ b/srcpkgs/glab/template @@ -1,7 +1,9 @@ # Template file for 'glab' pkgname=glab -version=1.18.1 +_basename=cli +version=1.22.0 revision=1 +wrksrc=$_basename-v$version build_style=go go_ldflags="-X main.version=$version" go_import_path=github.com/profclems/glab @@ -9,9 +11,10 @@ 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://github.com/profclems/glab" -distfiles="https://github.com/profclems/glab/archive/v$version.tar.gz" -checksum=ce10c93268eb58fa6d277ebd4ed6de254e4365a1a332122f597e295cc11496c3 +homepage="https://gitlab.com/gitlab-org/cli" +#distfiles="https://github.com/profclems/glab/archive/v$version.tar.gz" +distfiles="https://gitlab.com/gitlab-org/cli/-/archive/v$version/cli-v$version.tar.gz" +checksum=4d9bceb6818c8bf9f681119dae3a65f1c895fa21e9da6b38e8f88d245f524e10 post_install() { vlicense LICENSE diff --git a/srcpkgs/glab/update b/srcpkgs/glab/update new file mode 100644 index 000000000000..608e9bf8698f --- /dev/null +++ b/srcpkgs/glab/update @@ -0,0 +1,3 @@ +site="https://gitlab.com/gitlab-org/cli/-/tags?format=atom" +pattern="(?<=v).*(?=<\/title>)" +ignore="*pre*"