Date: Monday, October 5, 2020 @ 20:47:53 Author: shibumi Revision: 718960
archrelease: copy trunk to community-x86_64 Added: tekton-cli/repos/community-x86_64/ tekton-cli/repos/community-x86_64/PKGBUILD (from rev 718959, tekton-cli/trunk/PKGBUILD) ----------+ PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) Copied: tekton-cli/repos/community-x86_64/PKGBUILD (from rev 718959, tekton-cli/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2020-10-05 20:47:53 UTC (rev 718960) @@ -0,0 +1,36 @@ +# Maintainer: Christian Rebischke <chris.rebisc...@archlinux.org> + +pkgname=tekton-cli +pkgver=0.13.0 +pkgrel=1 +pkgdesc="CLI for interacting with the Tekton CI/CD pipeline" +arch=('x86_64') +url="https://github.com/tektoncd/cli" +license=('Apache') +makedepends=('go' 'git') +depends=('glibc') +source=("${pkgname}::git+https://github.com/tektoncd/cli#tag=v${pkgver}?signed") +sha512sums=('SKIP') +validpgpkeys=('66065D8F9D35B506AE99401CFEF7D4F0202F2B22') + +build() { + cd "${pkgname}/cmd/tkn" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" + export GOLDFLAGS="-linkmode=external" + go build . + chmod +x ./tkn +} + +check() { + cd "${pkgname}/cmd/tkn" + go test ./... +} + +package() { + cd "${pkgname}/cmd/tkn" + install -Dsm755 ./tkn "${pkgdir}/usr/bin/tkn" +}