From 5026edba73fd148ef53b48639e47bbd747ca9015 Mon Sep 17 00:00:00 2001 From: Maksim Bondarenkov <119937608+ognevny@users.noreply.github.com> Date: Wed, 12 Feb 2025 18:47:51 +0300 Subject: [PATCH] repgrep: update to 0.16.0 --- mingw-w64-repgrep/PKGBUILD | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/mingw-w64-repgrep/PKGBUILD b/mingw-w64-repgrep/PKGBUILD index c6f35062a3..b5d1de625b 100644 --- a/mingw-w64-repgrep/PKGBUILD +++ b/mingw-w64-repgrep/PKGBUILD @@ -3,9 +3,9 @@ _realname=repgrep pkgbase=mingw-w64-${_realname} pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" -pkgver=0.15.0 +pkgver=0.16.0 pkgrel=1 -pkgdesc="An interactive replacer for ripgrep that makes it easy to find and replace across files on the command line. (mingw-w64)" +pkgdesc="An interactive replacer for ripgrep that makes it easy to find and replace across files on the command line (mingw-w64)" arch=('any') mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') url='https://github.com/acheronfail/repgrep/' @@ -19,36 +19,35 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-rust" options=('!strip') source=("https://github.com/acheronfail/repgrep/archive/${pkgver}/${_realname}-${pkgver}.tar.gz" "asciidoctor-use-full-path.patch") -sha256sums=('24e8b317cda9fb7df6fa7e596708145ca4052380d680fe712cc5871d25b7d485' +sha256sums=('f7393ff98fa61d4de016670b6c5a69fff5a93f9430655f47a8eb5125d16d7fc2' '045bcd49c03ad51c7cb6dbbb8a120daf9e1a63acf8a85ececf4cd671d2031c07') prepare() { - cd "${srcdir}/${_realname}-${pkgver}" + cd "${_realname}-${pkgver}" + + patch -Np1 -i ../asciidoctor-use-full-path.patch + local _asciidoctor="$(cygpath -am ${MINGW_PREFIX}/bin/asciidoctor)" + sed -i "s|\"ASCIIDOCTOR\"|\"${_asciidoctor}\"|g" build.rs cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" - - patch -Np1 -i "${srcdir}/asciidoctor-use-full-path.patch" - - local _asciidoctor=$(cygpath -am $(where asciidoctor | grep "asciidoctor\$")) - sed -i "s|\"ASCIIDOCTOR\"|\"${_asciidoctor}\"|g" build.rs } build() { - cd "${srcdir}/${_realname}-${pkgver}" + cd "${_realname}-${pkgver}" WINAPI_NO_BUNDLED_LIBRARIES=1 \ cargo build --release --frozen } check() { - cd "${srcdir}/${_realname}-${pkgver}" + cd "${_realname}-${pkgver}" WINAPI_NO_BUNDLED_LIBRARIES=1 \ cargo test --release --frozen } package() { - cd "${srcdir}/${_realname}-${pkgver}" + cd "${_realname}-${pkgver}" install -Dm755 target/release/rgr "${pkgdir}${MINGW_PREFIX}/bin/rgr"