bat: rebuild for libgit2

This commit is contained in:
Marcin Puc 2023-06-10 13:00:03 +02:00 committed by classabbyamp
parent 478a4da921
commit cbe6d9d9ea
No known key found for this signature in database
GPG key ID: 6BE0755918A4C7F5
2 changed files with 17 additions and 2 deletions

View file

@ -0,0 +1,13 @@
diff --git a/Cargo.toml b/Cargo.toml
index 44460e0..78dfbde 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -68,7 +68,7 @@ walkdir = { version = "2.0", optional = true }
bytesize = { version = "1.1.0" }
[dependencies.git2]
-version = "0.16"
+version = "0.17"
optional = true
default-features = false

View file

@ -1,7 +1,7 @@
# Template file for 'bat'
pkgname=bat
version=0.23.0
revision=1
revision=2
build_style=cargo
hostmakedepends="cmake llvm clang pkg-config"
makedepends="libcurl-devel libgit2-devel libssh2-devel oniguruma-devel"
@ -19,7 +19,9 @@ case "$XBPS_TARGET_MACHINE" in
*) ;;
esac
export RUSTONIG_SYSTEM_LIBONIG=1
post_patch() {
cargo update --package git2@0.16.1 --precise 0.17.2
}
pre_build() {
export CFLAGS_${RUST_BUILD//-/_}="${CFLAGS_host}"