-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rebuild rust-based packages for libgit2 update
- Loading branch information
Showing
9 changed files
with
77 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/bat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ _realname=bat | |
pkgbase=mingw-w64-${_realname} | ||
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" | ||
pkgver=0.24.0 | ||
pkgrel=5 | ||
pkgrel=6 | ||
pkgdesc="Cat clone with syntax highlighting and git integration (mingw-w64)" | ||
arch=('any') | ||
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') | ||
|
@@ -18,19 +18,24 @@ license=('spdx:MIT OR Apache-2.0') | |
depends=( | ||
"${MINGW_PACKAGE_PREFIX}-oniguruma" | ||
"${MINGW_PACKAGE_PREFIX}-zlib" | ||
"${MINGW_PACKAGE_PREFIX}-libgit2" | ||
) | ||
makedepends=( | ||
"${MINGW_PACKAGE_PREFIX}-rust" | ||
"${MINGW_PACKAGE_PREFIX}-pkgconf" | ||
'git' | ||
) | ||
options=('!strip' '!lto') | ||
source=("git+${url}.git#tag=v${pkgver}") | ||
sha256sums=('ccfd1400fba47dbdd839c378fc59b978573b2d651c0b12a8f6b053843ae1012b') | ||
source=("git+${url}.git#tag=v${pkgver}" | ||
"update-git2-crate.patch") | ||
sha256sums=('ccfd1400fba47dbdd839c378fc59b978573b2d651c0b12a8f6b053843ae1012b' | ||
'a5daacba88dbe1a327dbd1b6a14c0bf8839279473a8b8dd03bf3fb059ae8844d') | ||
|
||
prepare() { | ||
cd "${_realname}" | ||
|
||
# bump git2 crate for libgit2 1.8+ support | ||
git apply ../update-git2-crate.patch | ||
# update windows-targets to fix windows-gnullvm dependency specification | ||
cargo update -p [email protected] --precise 0.48.1 | ||
|
||
|
@@ -40,9 +45,7 @@ prepare() { | |
build() { | ||
cd "${_realname}" | ||
|
||
# Not compatible with libgit2 1.8+ | ||
# export LIBGIT2_NO_VENDOR=1 | ||
|
||
LIBGIT2_NO_VENDOR=1 \ | ||
RUSTONIG_DYNAMIC_LIBONIG=1 \ | ||
cargo build --release --frozen | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
diff --git a/Cargo.lock b/Cargo.lock | ||
index d51c98a4..90367a0f 100644 | ||
--- a/Cargo.lock | ||
+++ b/Cargo.lock | ||
@@ -523,9 +523,9 @@ dependencies = [ | ||
|
||
[[package]] | ||
name = "git2" | ||
-version = "0.18.0" | ||
+version = "0.19.0" | ||
source = "registry+https://github.com/rust-lang/crates.io-index" | ||
-checksum = "12ef350ba88a33b4d524b1d1c79096c9ade5ef8c59395df0e60d1e1889414c0e" | ||
+checksum = "b903b73e45dc0c6c596f2d37eccece7c1c8bb6e4407b001096387c63d0d93724" | ||
dependencies = [ | ||
"bitflags 2.4.0", | ||
"libc", | ||
@@ -658,9 +658,9 @@ checksum = "b4668fb0ea861c1df094127ac5f1da3409a82116a4ba74fca2e58ef927159bb3" | ||
|
||
[[package]] | ||
name = "libgit2-sys" | ||
-version = "0.16.1+1.7.1" | ||
+version = "0.17.0+1.8.1" | ||
source = "registry+https://github.com/rust-lang/crates.io-index" | ||
-checksum = "f2a2bb3680b094add03bb3732ec520ece34da31a8cd2d633d1389d0f0fb60d0c" | ||
+checksum = "10472326a8a6477c3c20a64547b0059e4b0d086869eee31e6d7da728a8eb7224" | ||
dependencies = [ | ||
"cc", | ||
"libc", | ||
diff --git a/Cargo.toml b/Cargo.toml | ||
index e31fbc31..5fb32c82 100644 | ||
--- a/Cargo.toml | ||
+++ b/Cargo.toml | ||
@@ -69,7 +69,7 @@ os_str_bytes = { version = "~6.4", optional = true } | ||
run_script = { version = "^0.10.0", optional = true} | ||
|
||
[dependencies.git2] | ||
-version = "0.18" | ||
+version = "0.19" | ||
optional = true | ||
default-features = false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/gitui |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters