ripgrep: update to 15.0.0 (#25963)
This commit is contained in:
parent
9665e2ee3e
commit
896199275d
@ -4,7 +4,7 @@
|
||||
_realname=ripgrep
|
||||
pkgbase=mingw-w64-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
|
||||
pkgver=14.1.1
|
||||
pkgver=15.0.0
|
||||
pkgrel=1
|
||||
pkgdesc='line-oriented search tool that recursively searches your current directory for a regex pattern (mingw-w64)'
|
||||
arch=('any')
|
||||
@ -20,12 +20,12 @@ depends=("${MINGW_PACKAGE_PREFIX}-pcre2")
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-rust" "${MINGW_PACKAGE_PREFIX}-pkgconf")
|
||||
options=('!strip')
|
||||
source=("${url}/archive/${pkgver}/${_realname}-${pkgver}.tar.gz")
|
||||
sha256sums=('4dad02a2f9c8c3c8d89434e47337aa654cb0e2aa50e806589132f186bf5c2b66')
|
||||
sha256sums=('e6b2d35ff79c3327edc0c92a29dc4bb74e82d8ee4b8156fb98e767678716be7a')
|
||||
noextract=("${_realname}-${pkgver}.tar.gz")
|
||||
|
||||
prepare() {
|
||||
tar -xzf "${_realname}-${pkgver}.tar.gz" || true
|
||||
cd "${srcdir}/${_realname}-${pkgver}"
|
||||
cd "${_realname}-${pkgver}"
|
||||
|
||||
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
|
||||
}
|
||||
@ -33,6 +33,7 @@ prepare() {
|
||||
build() {
|
||||
cd "${_realname}-${pkgver}"
|
||||
|
||||
export RUSTFLAGS="${RUSTFLAGS/+crt-static/-crt-static}"
|
||||
cargo build --frozen --features 'pcre2' --profile release-lto
|
||||
}
|
||||
|
||||
@ -43,7 +44,7 @@ check() {
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${_realname}-${pkgver}"
|
||||
cd "${_realname}-${pkgver}"
|
||||
|
||||
cargo install \
|
||||
--frozen \
|
||||
@ -54,7 +55,7 @@ package() {
|
||||
--path . \
|
||||
--root "${pkgdir}${MINGW_PREFIX}"
|
||||
|
||||
local _complete="./target/release-lto/rg --generate"
|
||||
local _complete="target/release-lto/rg --generate"
|
||||
$_complete complete-zsh | install -Dm644 /dev/stdin "${pkgdir}${MINGW_PREFIX}/share/zsh/site-functions/_rg"
|
||||
$_complete complete-bash | install -Dm644 /dev/stdin "${pkgdir}${MINGW_PREFIX}/share/bash-completion/completions/rg"
|
||||
$_complete complete-fish | install -Dm644 /dev/stdin "${pkgdir}${MINGW_PREFIX}/share/fish/vendor_completions.d/rg.fish"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user