github-cli: update to 2.4.0.
This commit is contained in:
parent
cec6722f86
commit
9163cd9371
|
@ -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 <realtiaz@gmail.com>"
|
||||
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
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
site="https://github.com/cli/cli/releases"
|
||||
pattern='/tags/v\K[\d.]+(?=.tar.gz)'
|
Loading…
Reference in New Issue