# Maintainer: Chris Lane # Co-maintainer: phiresky # Contributor: Julien Nicoulaud pkgname=ripgrep-all pkgver=0.9.6 pkgrel=2 pkgdesc="rga: ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz, etc." arch=('i686' 'x86_64' 'armv6h' 'armv7h') url="https://github.com/phiresky/ripgrep-all" license=('AGPL3') depends=('ripgrep') makedepends=('cargo') optdepends=( 'ffmpeg: for the ffmpeg adapter' 'graphicsmagick: for the pdfpages adapter' 'pandoc: for the pandoc adapter' 'poppler: for the poppler adapter' 'tesseract: for the tesseract adapter') conflicts=("${pkgname}-git" "${pkgname}-bin") source=("${pkgname}-${pkgver}"::"${url}/archive/v${pkgver}.tar.gz") sha512sums=('45fc258e8ef44ddd7ce6b4c7dc5c60a439c8e5aafd253ea41621afcc50aaecd300d8792c4cbdc9247a5656d9c3db0a33053de96ca41f0831421ea8ce382ca7de') options=(!lto) prepare() { cd "${srcdir}/ripgrep-all-${pkgver}" cargo fetch --locked --target "$CARCH-unknown-linux-gnu" } build() { cd "${srcdir}/ripgrep-all-${pkgver}" export RUSTUP_TOOLCHAIN=stable export CARGO_TARGET_DIR=target cargo build --frozen --release --all-features } check() { cd "${srcdir}/ripgrep-all-${pkgver}" export RUSTUP_TOOLCHAIN=stable cargo test --frozen --all-features } package() { cd "${srcdir}/ripgrep-all-${pkgver}" install -Dm 755 "target/release/rga" "${pkgdir}/usr/bin/rga" install -Dm 755 "target/release/rga-preproc" "${pkgdir}/usr/bin/rga-preproc" } # vim:set ts=2 sw=2 et: