From 37a23255a15aaa682ddb0beb27633f8770d1cf69 Mon Sep 17 00:00:00 2001 From: Toby Merz Date: Wed, 15 Dec 2021 10:59:31 +0100 Subject: [PATCH] github-cli: update to 2.4.0. --- srcpkgs/github-cli/template | 10 +++++----- srcpkgs/github-cli/update | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 srcpkgs/github-cli/update diff --git a/srcpkgs/github-cli/template b/srcpkgs/github-cli/template index d42f0f6eea55..d952cc633cc5 100644 --- a/srcpkgs/github-cli/template +++ b/srcpkgs/github-cli/template @@ -1,25 +1,25 @@ # Template file for 'github-cli' pkgname=github-cli -version=2.0.0 +version=2.4.0 revision=1 wrksrc="cli-${version}" build_style=go build_helper=qemu -go_import_path="github.com/cli/cli/cmd/gh" -go_ldflags="-X github.com/cli/cli/internal/build.Version=v${version}" +go_import_path="github.com/cli/cli/v2/cmd/gh" +go_ldflags="-X github.com/cli/cli/v2/internal/build.Version=v${version}" short_desc="GitHub CLI tool" maintainer="shizonic " license="MIT" homepage="https://cli.github.com" changelog="https://github.com/cli/cli/releases" distfiles="https://github.com/cli/cli/archive/v${version}.tar.gz" -checksum=5d93535395a6684dee1d9d1d3cde859addd76f56581e0111d95a9c685d582426 +checksum=3c87db4d9825a342fc55bd7f27461099dd46291aea4a4a29bb95d3c896403f94 pre_build() { local _date if [ "$SOURCE_DATE_EPOCH" ]; then _date="$(date --utc --date "@$SOURCE_DATE_EPOCH" "+%Y-%m-%d")" - go_ldflags="$go_ldflags -X github.com/cli/cli/internal/build.Date=${_date}" + go_ldflags="$go_ldflags -X github.com/cli/cli/v2/internal/build.Date=${_date}" fi } diff --git a/srcpkgs/github-cli/update b/srcpkgs/github-cli/update new file mode 100644 index 000000000000..7ed4286fe0fe --- /dev/null +++ b/srcpkgs/github-cli/update @@ -0,0 +1,2 @@ +site="https://github.com/cli/cli/releases" +pattern='/tags/v\K[\d.]+(?=.tar.gz)'