From 1acb66a717c67737205820c38e6fa032fcc247ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Nogueira?= Date: Fri, 14 May 2021 21:58:58 -0300 Subject: [PATCH] bat: udpate to 0.18.1. Also don't pipe find into head unnecessarily. `find|head -n1` requires find to terminate with SIGPIPE when head is dead, but `find ... -print -quit` will allow it to quit by itself. The -quit flag is supported by GNU findutils and busybox find. --- srcpkgs/bat/template | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/srcpkgs/bat/template b/srcpkgs/bat/template index 05680e52a9d..278a788ce8c 100644 --- a/srcpkgs/bat/template +++ b/srcpkgs/bat/template @@ -1,6 +1,6 @@ # Template file for 'bat' pkgname=bat -version=0.18.0 +version=0.18.1 revision=1 build_style=cargo hostmakedepends="cmake llvm clang" @@ -10,7 +10,7 @@ maintainer="John " license="Apache-2.0, MIT" homepage="https://github.com/sharkdp/bat" distfiles="https://github.com/sharkdp/bat/archive/v${version}.tar.gz" -checksum=49d1b95250050df47753c213b5e48953a029c9e74753cef371051b14c9d629b8 +checksum=ab5246c3bec8745c14ca9a0473971f00fbce2fdc1ce7842e0a96676ee5eac2af pre_build() { export CFLAGS_${RUST_BUILD//-/_}="${CFLAGS_host}" @@ -25,8 +25,8 @@ post_install() { manpage=$(find ${wrksrc}/target -name bat.1 | head -n1) vman ${manpage} # Completions are also hidden somewhere deep in the build tree - fish_completion=$(find ${wrksrc}/target -name bat.fish | head -n1) + fish_completion=$(find ${wrksrc}/target -name bat.fish -print -quit) vcompletion ${fish_completion} fish - zsh_completion=$(find ${wrksrc}/target -name bat.zsh | head -n1) + zsh_completion=$(find ${wrksrc}/target -name bat.zsh -print -quit) vcompletion ${zsh_completion} zsh }