Skip to content
Snippets Groups Projects
Commit c7e88c37 authored by Hoang Nguyen's avatar Hoang Nguyen :turtle: Committed by alice
Browse files

community/yq: upgrade to 4.26.1

Some fixes:
- Generate shell completions in build()
- Run more tests
- Remove -doc subpackage
parent 52a8039c
No related branches found
No related tags found
2 merge requests!39304[3.16] main/expat: security upgrade to 2.4.9,!37002community/yq: upgrade to 4.26.1
Pipeline #131115 passed
# Contributor: Hoang Nguyen <folliekazetani@protonmail.com>
# Contributor: Tuan Hoang <tmhoang@linux.ibm.com> # Contributor: Tuan Hoang <tmhoang@linux.ibm.com>
# Maintainer: Tuan Hoang <tmhoang@linux.ibm.com> # Maintainer: Tuan Hoang <tmhoang@linux.ibm.com>
pkgname=yq pkgname=yq
pkgver=4.25.1 pkgver=4.26.1
pkgrel=3 pkgrel=0
pkgdesc="portable command-line YAML processor written in Go" pkgdesc="Portable command-line YAML processor written in Go"
url="https://github.com/mikefarah/yq" url="https://github.com/mikefarah/yq"
arch="all" arch="all"
license="MIT" license="MIT"
makedepends="go" makedepends="go"
options="chmod-clean"
subpackages=" subpackages="
$pkgname-doc
$pkgname-bash-completion $pkgname-bash-completion
$pkgname-zsh-completion $pkgname-zsh-completion
$pkgname-fish-completion $pkgname-fish-completion
...@@ -20,32 +19,39 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/mikefarah/yq/archive/v$pkgve ...@@ -20,32 +19,39 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/mikefarah/yq/archive/v$pkgve
export GOCACHE="$srcdir/go-cache" export GOCACHE="$srcdir/go-cache"
export GOTMPDIR="$srcdir" export GOTMPDIR="$srcdir"
export GOMODCACHE="$srcdir/go" export GOMODCACHE="$srcdir/go"
export GOFLAGS="$GOFLAGS -modcacherw"
build() { build() {
go build -v go build -v -o yq
./yq shell-completion bash > yq.bash
./yq shell-completion zsh > yq.zsh
./yq shell-completion fish > yq.fish
} }
check() { check() {
go test go test ./...
# Yanked from scripts/acceptance.sh
for test in acceptance_tests/*.sh; do
echo "--------------------------------------------------------------"
echo "$test"
echo "--------------------------------------------------------------"
sh "$test"
done
} }
package() { package() {
install -Dm755 yq "$pkgdir"/usr/bin/yq install -Dm755 yq "$pkgdir"/usr/bin/yq
for file in LICENSE README.md; do
install -Dm644 $file "$pkgdir"/usr/share/doc/$pkgname/$file
done
mkdir -p "$pkgdir"/usr/share/bash-completion/completions \ install -Dm644 yq.bash \
"$pkgdir"/usr/share/zsh/site-functions \ "$pkgdir"/usr/share/bash-completion/completions/yq
"$pkgdir"/usr/share/fish/completions install -Dm644 yq.zsh \
"$pkgdir"/usr/bin/yq shell-completion bash \ "$pkgdir"/usr/share/zsh/site-functions/_yq
> "$pkgdir"/usr/share/bash-completion/completions/yq.bash install -Dm644 yq.fish \
"$pkgdir"/usr/bin/yq shell-completion zsh \ "$pkgdir"/usr/share/fish/completions/yq.fish
> "$pkgdir"/usr/share/zsh/site-functions/_yq
"$pkgdir"/usr/bin/yq shell-completion fish \
> "$pkgdir"/usr/share/fish/completions/yq.fish
} }
sha512sums=" sha512sums="
f6c2536e28ce153cbdad271a8ebdc9851453f9c607879928a9f2eabefb3a6fd33ceeaae6a7b8146684ab0801305de5f25444059108b95b9d96f35fb3d92740c3 yq-4.25.1.tar.gz afc79b753f23f450851bb8a2600db96b9d7a285dc834f69df844c54da7aba90e644b4a33ebd1a37ff8e607477bfe66837be56a3667fecfa8ca646266954bf9d1 yq-4.26.1.tar.gz
" "
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment