-
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
6 changed files
with
34 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 |
---|---|---|
|
@@ -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
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
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