repgrep: update to 0.16.0
This commit is contained in:
committed by
GitHub
parent
03998c0f99
commit
5026edba73
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user