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.
This commit is contained in:
parent
df9082f5e5
commit
1acb66a717
1 changed files with 4 additions and 4 deletions
|
@ -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 <me@johnnynator.dev>"
|
|||
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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue