mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 10:52:57 +02:00
github-cli: fix version output
This commit is contained in:
parent
2fe969ce04
commit
da301c2633
1 changed files with 10 additions and 2 deletions
|
@ -1,11 +1,11 @@
|
||||||
# Template file for 'github-cli'
|
# Template file for 'github-cli'
|
||||||
pkgname=github-cli
|
pkgname=github-cli
|
||||||
version=0.5.5
|
version=0.5.5
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="cli-${version}"
|
wrksrc="cli-${version}"
|
||||||
# create_wrksrc=yes
|
|
||||||
build_style=go
|
build_style=go
|
||||||
go_import_path="github.com/cli/cli/cmd/gh"
|
go_import_path="github.com/cli/cli/cmd/gh"
|
||||||
|
go_ldflags="-X github.com/cli/cli/command.Version=v${version}"
|
||||||
short_desc="GitHub CLI tool"
|
short_desc="GitHub CLI tool"
|
||||||
maintainer="shizonic <realtiaz@gmail.com>"
|
maintainer="shizonic <realtiaz@gmail.com>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
|
@ -14,6 +14,14 @@ changelog="https://github.com/cli/cli/releases"
|
||||||
distfiles="https://github.com/cli/cli/archive/v${version}.tar.gz"
|
distfiles="https://github.com/cli/cli/archive/v${version}.tar.gz"
|
||||||
checksum=7c2cfdafe765a598b70b3e6de839590e8fa30a89bedc85799a43bdbc6fd3277e
|
checksum=7c2cfdafe765a598b70b3e6de839590e8fa30a89bedc85799a43bdbc6fd3277e
|
||||||
|
|
||||||
|
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/command.BuildDate=${_date}"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue