diff --git a/srcpkgs/github-cli/template b/srcpkgs/github-cli/template index d42f0f6eea5..d952cc633cc 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 00000000000..7ed4286fe0f --- /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)'