Date: Sunday, March 20, 2022 @ 08:46:36 Author: alerque Revision: 1163287
archrelease: copy trunk to community-x86_64 Added: go-yq/repos/community-x86_64/PKGBUILD (from rev 1163286, go-yq/trunk/PKGBUILD) Deleted: go-yq/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 103 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 52 insertions(+), 51 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-03-20 08:46:28 UTC (rev 1163286) +++ PKGBUILD 2022-03-20 08:46:36 UTC (rev 1163287) @@ -1,51 +0,0 @@ -# Maintainer: Daniel M. Capella <poly...@archlinux.org> -# Contributor: Mario Finelli <mario at finel dot li> - -pkgname=go-yq -pkgver=4.22.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=('423047e4d198cbc0408fdf20ebff0c3efcd2577de5a7902e3c7cdf6dced8fec580906aea2f09868974f8e18b14b7207d4a7a9e4f146b2eca87335c2195e5e657') - -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 1163286, go-yq/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-03-20 08:46:36 UTC (rev 1163287) @@ -0,0 +1,52 @@ +# Maintainer: Daniel M. Capella <poly...@archlinux.org> +# Maintainer: Caleb Maclennan <ca...@alerque.com> +# Contributor: Mario Finelli <mario at finel dot li> + +pkgname=go-yq +pkgver=4.23.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=('152ff324757ea96af39a80d0d9a760743ad36b514911bed6fac17e63b51ec37ba68bb85c922ed74ff08614be8939137050f5b7f5c5e4c9140ffa24f46383983a') + +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: