Date: Sunday, December 20, 2020 @ 22:16:02 Author: shibumi Revision: 780803
archrelease: copy trunk to community-x86_64 Added: tanka/repos/community-x86_64/PKGBUILD (from rev 780802, tanka/trunk/PKGBUILD) Deleted: tanka/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 84 +++++++++++++++++++++++++++++-------------------------------- 1 file changed, 41 insertions(+), 43 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-12-20 22:15:56 UTC (rev 780802) +++ PKGBUILD 2020-12-20 22:16:02 UTC (rev 780803) @@ -1,43 +0,0 @@ -# Maintainer: Christian Rebischke <chris.rebisc...@archlinux.org> - -pkgname=tanka -pkgver=0.12.0 -pkgrel=2 -pkgdesc="Flexible, reusable and concise configuration for Kubernetes" -arch=('x86_64') -url="https://github.com/grafana/tanka" -license=('Apache') -makedepends=('go') -depends=('glibc') -source=("${pkgname}-${pkgver}.tar.gz::https://github.com/grafana/tanka/archive/v${pkgver}.tar.gz") -sha512sums=('a768d12423f63dcd95d4b27655874c916673bf5ebf7209951148644c611cf23060bf8852237f0df2841829524965a9b6454f1a7e4f7a1904d6896bc7388b3ef3') - -prepare() { - export GOPATH="${srcdir}" - mkdir -p src/github.com/grafana "${GOPATH}/bin" - mv "${pkgname}-${pkgver}" "src/github.com/grafana/${pkgname}" - export PACKAGE_ROOT="${GOPATH}/src/github.com/grafana/${pkgname}" -} - -build() { - cd "${PACKAGE_ROOT}/cmd/tk/" - export CGO_ENABLED=1 - 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="-s -w -linkmode=external -X github.com/grafana/tanka/pkg/tanka.CURRENT_VERSION=${pkgver}" - go build -v . - chmod +x ./tk -} - -check() { - cd "${PACKAGE_ROOT}" - go test -v ./... -} - -package() { - cd "${PACKAGE_ROOT}/cmd/tk/" - install -Dsm755 ./tk "${pkgdir}/usr/bin/tk" -} Copied: tanka/repos/community-x86_64/PKGBUILD (from rev 780802, tanka/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-12-20 22:16:02 UTC (rev 780803) @@ -0,0 +1,41 @@ +# Maintainer: Christian Rebischke <chris.rebisc...@archlinux.org> + +pkgname=tanka +pkgver=0.13.0 +pkgrel=1 +pkgdesc="Flexible, reusable and concise configuration for Kubernetes" +arch=('x86_64') +url="https://github.com/grafana/tanka" +license=('Apache') +makedepends=('go') +depends=('glibc') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/grafana/tanka/archive/v${pkgver}.tar.gz") +sha512sums=('6e57f6dafcee416da851fce08b7dad803fec99b2131885740866755b524772c7e3c349123894fa0d61bc1ce9a0291e8c8c2443132286f292e1d0515238bf623a') + +prepare() { + export GOPATH="${srcdir}" + mkdir -p src/github.com/grafana "${GOPATH}/bin" + mv "${pkgname}-${pkgver}" "src/github.com/grafana/${pkgname}" + export PACKAGE_ROOT="${GOPATH}/src/github.com/grafana/${pkgname}" +} + +build() { + cd "${PACKAGE_ROOT}/cmd/tk/" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" + go build -ldflags "-s -w -linkmode=external -X github.com/grafana/tanka/pkg/tanka.CURRENT_VERSION=${pkgver}" -v . + chmod +x ./tk +} + +check() { + cd "${PACKAGE_ROOT}" + go test -v ./... +} + +package() { + cd "${PACKAGE_ROOT}/cmd/tk/" + install -Dsm755 ./tk "${pkgdir}/usr/bin/tk" +}