bat: update to 0.23.0

This commit is contained in:
Marcin Puc 2023-03-25 11:00:07 +01:00 committed by classabbyamp
parent 1c5efe19fb
commit 5e0f39c911

View file

@ -1,7 +1,7 @@
# Template file for 'bat' # Template file for 'bat'
pkgname=bat pkgname=bat
version=0.22.1 version=0.23.0
revision=2 revision=1
build_style=cargo build_style=cargo
hostmakedepends="cmake llvm clang pkg-config" hostmakedepends="cmake llvm clang pkg-config"
makedepends="libcurl-devel libgit2-devel libssh2-devel oniguruma-devel" makedepends="libcurl-devel libgit2-devel libssh2-devel oniguruma-devel"
@ -11,7 +11,7 @@ license="Apache-2.0, MIT"
homepage="https://github.com/sharkdp/bat" homepage="https://github.com/sharkdp/bat"
changelog="https://raw.githubusercontent.com/sharkdp/bat/master/CHANGELOG.md" changelog="https://raw.githubusercontent.com/sharkdp/bat/master/CHANGELOG.md"
distfiles="https://github.com/sharkdp/bat/archive/refs/tags/v${version}.tar.gz" distfiles="https://github.com/sharkdp/bat/archive/refs/tags/v${version}.tar.gz"
checksum=25e45debf7c86794281d63a51564feefa96fdfdf575381e3adc5c06653ecaeca checksum=30b6256bea0143caebd08256e0a605280afbbc5eef7ce692f84621eb232a9b31
# skip problematic doctests on i686 # skip problematic doctests on i686
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
@ -19,10 +19,7 @@ case "$XBPS_TARGET_MACHINE" in
*) ;; *) ;;
esac esac
post_patch() { export RUSTONIG_SYSTEM_LIBONIG=1
# fixes an indexmap error when cross compiling
cargo update --package autocfg@1.0.1 --precise 1.1.0
}
pre_build() { pre_build() {
export CFLAGS_${RUST_BUILD//-/_}="${CFLAGS_host}" export CFLAGS_${RUST_BUILD//-/_}="${CFLAGS_host}"