Date: Sunday, February 6, 2022 @ 06:39:35 Author: polyzen Revision: 1126968
archrelease: copy trunk to community-x86_64 Added: go-yq/repos/community-x86_64/PKGBUILD (from rev 1126967, go-yq/trunk/PKGBUILD) Deleted: go-yq/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 102 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 51 insertions(+), 51 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-02-06 06:39:16 UTC (rev 1126967) +++ PKGBUILD 2022-02-06 06:39:35 UTC (rev 1126968) @@ -1,51 +0,0 @@ -# Maintainer: Daniel M. Capella <poly...@archlinux.org> -# Contributor: Mario Finelli <mario at finel dot li> - -pkgname=go-yq -pkgver=4.18.1 -pkgrel=1 -pkgdesc='Portable command-line YAML processor' -arch=('x86_64') -url=https://github.com/mikefarah/yq -license=('MIT') -depends=('glibc') -makedepends=('go') -conflicts=('yq') -source=("$url/archive/v$pkgver/yq-$pkgver.tar.gz") -b2sums=('0f3970b2b2c1db9bce82aa95d0e3ed5d6e597b9403cae7cc304d11cb973fbed2637eaacba9c36191634d3fa0e3062155b93d0baf5c91239bdb41367af4f25cd0') - -prepare() { - cd yq-$pkgver - go mod vendor -} - -build() { - cd yq-$pkgver - export CGO_CPPFLAGS="$CPPFLAGS" - export CGO_CFLAGS="$CFLAGS" - export CGO_CXXFLAGS="$CXXFLAGS" - export CGO_LDFLAGS="$LDFLAGS" - export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -modcacherw" - go build . -} - -check() { - cd yq-$pkgver - go test ./... -} - -package() { - cd yq-$pkgver - install -Dt "$pkgdir"/usr/bin yq - install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE - install -Dm644 -t "$pkgdir"/usr/share/doc/$pkgname README.md - - ./yq shell-completion bash | install -Dm644 /dev/stdin \ - "$pkgdir"/usr/share/bash-completion/completions/yq - ./yq shell-completion zsh | install -Dm644 /dev/stdin \ - "$pkgdir"/usr/share/zsh/site-functions/_yq - ./yq shell-completion fish | install -Dm644 /dev/stdin \ - "$pkgdir"/usr/share/fish/vendor_completions.d/yq.fish -} - -# vim:set ts=2 sw=2 et: Copied: go-yq/repos/community-x86_64/PKGBUILD (from rev 1126967, go-yq/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-02-06 06:39:35 UTC (rev 1126968) @@ -0,0 +1,51 @@ +# Maintainer: Daniel M. Capella <poly...@archlinux.org> +# Contributor: Mario Finelli <mario at finel dot li> + +pkgname=go-yq +pkgver=4.19.1 +pkgrel=1 +pkgdesc='Portable command-line YAML processor' +arch=('x86_64') +url=https://github.com/mikefarah/yq +license=('MIT') +depends=('glibc') +makedepends=('go') +conflicts=('yq') +source=("$url/archive/v$pkgver/yq-$pkgver.tar.gz") +b2sums=('463e0f1b2db99508b840b884af3e53ebd3b0a4e870ee6e0fb3e7ae77c97b379196efec060cce8e2031ef9f14c350bbe59ea76f1ee9c2e7651203fec8dbe91fd6') + +prepare() { + cd yq-$pkgver + go mod vendor +} + +build() { + cd yq-$pkgver + export CGO_CPPFLAGS="$CPPFLAGS" + export CGO_CFLAGS="$CFLAGS" + export CGO_CXXFLAGS="$CXXFLAGS" + export CGO_LDFLAGS="$LDFLAGS" + export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -modcacherw" + go build . +} + +check() { + cd yq-$pkgver + go test ./... +} + +package() { + cd yq-$pkgver + install -Dt "$pkgdir"/usr/bin yq + install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE + install -Dm644 -t "$pkgdir"/usr/share/doc/$pkgname README.md + + ./yq shell-completion bash | install -Dm644 /dev/stdin \ + "$pkgdir"/usr/share/bash-completion/completions/yq + ./yq shell-completion zsh | install -Dm644 /dev/stdin \ + "$pkgdir"/usr/share/zsh/site-functions/_yq + ./yq shell-completion fish | install -Dm644 /dev/stdin \ + "$pkgdir"/usr/share/fish/vendor_completions.d/yq.fish +} + +# vim:set ts=2 sw=2 et: