28 lines
778 B
Bash
28 lines
778 B
Bash
# Template file for 'github-cli'
|
|
pkgname=github-cli
|
|
version=1.0.0
|
|
revision=1
|
|
wrksrc="cli-${version}"
|
|
build_style=go
|
|
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"
|
|
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=e3d1c341829f5b885dce9aa2bf4bc84db48072752250f6fdb2d62903caf07cfb
|
|
|
|
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() {
|
|
vlicense LICENSE
|
|
}
|