29 lines
919 B
Bash
29 lines
919 B
Bash
# Template file for 'circleci-cli'
|
|
pkgname=circleci-cli
|
|
version=0.1.15044
|
|
revision=1
|
|
build_style=go
|
|
go_import_path=github.com/CircleCI-Public/${pkgname}
|
|
go_ldflags="-s -w -X github.com/CircleCI-Public/${pkgname}/version.Version=${version} -X github.com/CircleCI-Public/${pkgname}/version.Commit=cf6a918 -X github.com/CircleCI-Public/${pkgname}/version.packageManager=xbps"
|
|
hostmakedepends="packr2"
|
|
short_desc="Use CircleCI from the command line"
|
|
maintainer="Gabriel Sanches <gabriel@gsr.dev>"
|
|
license="MIT"
|
|
homepage="https://circleci-public.github.io/circleci-cli/"
|
|
distfiles="https://github.com/CircleCI-Public/${pkgname}/archive/v${version}.tar.gz"
|
|
checksum=b3206f5fbb6da7588fa93e8b2e8bd91f3a4f73da8979d517273f6db275680105
|
|
|
|
pre_build() {
|
|
packr2
|
|
}
|
|
|
|
post_build() {
|
|
packr2 clean
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
|
|
# Rename the binary according to CircleCI's own releases.
|
|
mv ${DESTDIR}/usr/bin/circleci{-cli,}
|
|
}
|