From a2c96aba55586f669324145801df0d6cdc4ed08b Mon Sep 17 00:00:00 2001 From: Marcin Puc Date: Sun, 26 Nov 2023 21:07:06 +0100 Subject: [PATCH] ripgrep: update to 14.0.0 --- srcpkgs/ripgrep/template | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/srcpkgs/ripgrep/template b/srcpkgs/ripgrep/template index ba4a48a42fb61..cca713bf06114 100644 --- a/srcpkgs/ripgrep/template +++ b/srcpkgs/ripgrep/template @@ -1,25 +1,31 @@ # Template file for 'ripgrep' pkgname=ripgrep -version=13.0.0 -revision=2 +version=14.0.0 +revision=1 build_style=cargo +build_helper=qemu configure_args="--features=pcre2" -hostmakedepends="ruby-asciidoctor pkg-config" +hostmakedepends="pkg-config" makedepends="pcre2-devel" short_desc="Fast search tool inspired by ag and grep" maintainer="Leah Neukirchen " license="Unlicense, MIT" homepage="https://github.com/BurntSushi/ripgrep/" -distfiles="https://github.com/BurntSushi/${pkgname}/archive/${version}.tar.gz" -checksum=0fb17aaf285b3eee8ddab17b833af1e190d73de317ff9648751ab0660d763ed2 +changelog="https://raw.githubusercontent.com/BurntSushi/ripgrep/master/CHANGELOG.md" +distfiles="https://github.com/BurntSushi/ripgrep/archive/refs/tags/${version}.tar.gz" +checksum=d4a57f558abe30bb272850d08850d412870fb3f942ed06932a30b4989911360b post_install() { vlicense LICENSE-MIT vlicense UNLICENSE - vinstall complete/_rg 0644 usr/share/zsh/site-functions - cd "target/${RUST_TARGET}/release/build/ripgrep-"*/out + local _rg=${DESTDIR}/usr/bin/rg + + vtargetrun ${_rg} --generate man > rg.1 vman rg.1 - vinstall rg.bash 0644 usr/share/bash-completion/completions rg - vinstall rg.fish 0644 usr/share/fish/vendor_completions.d + + for _shell in bash fish zsh; do + vtargetrun ${_rg} --generate complete-${_shell} > rg.${_shell} + vcompletion rg.${_shell} ${_shell} rg + done }