diff options
author | wcasanova | 2023-11-11 16:06:57 -0300 |
---|---|---|
committer | wcasanova | 2023-11-11 16:06:57 -0300 |
commit | e490502787745e23122a35f60febef65c54fe61f (patch) | |
tree | cca63456004ec1c665b8a449e51fbe7ee7824c79 | |
parent | f15d7bd183e7aee380ce3a2891ee852b5a7540e1 (diff) | |
download | aur-e490502787745e23122a35f60febef65c54fe61f.tar.gz |
update
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 49 |
2 files changed, 30 insertions, 25 deletions
@@ -1,6 +1,6 @@ pkgbase = ripgrep-all-git pkgdesc = rga: ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz, etc. - pkgver = 0.9.4.alpha.0.154.g235ee0a + pkgver = 1.0.0.alpha.5.359.g3ccf371 pkgrel = 1 url = https://github.com/phiresky/ripgrep-all arch = i686 @@ -9,6 +9,7 @@ pkgbase = ripgrep-all-git makedepends = cargo makedepends = git depends = ripgrep + depends = xz optdepends = ffmpeg optdepends = pandoc optdepends = poppler @@ -16,8 +17,7 @@ pkgbase = ripgrep-all-git optdepends = imagemagick conflicts = ripgrep-all conflicts = ripgrep-all-bin - source = ripgrep-all-git::git+https://github.com/phiresky/ripgrep-all + source = ripgrep-all::git+https://github.com/phiresky/ripgrep-all sha1sums = SKIP pkgname = ripgrep-all-git - @@ -1,7 +1,11 @@ -# Maintainer: walter <wcasanova [at] disroot dot com> +#Maintainer: Walter Casanova - "Y29udGFjdG9Ad2FsdGVyY2FzYW5vdmEudGVjaAo=" - base64 + +#indent = tab +#tab-size = 4 + pkgname=ripgrep-all-git _pkgname=ripgrep-all -pkgver=0.9.4.alpha.0.154.g235ee0a +pkgver=1.0.0.alpha.5.359.g3ccf371 pkgrel=1 pkgdesc="rga: ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz, etc." arch=('i686' 'x86_64') @@ -9,35 +13,36 @@ url="https://github.com/phiresky/ripgrep-all" license=('AGPL3') makedepends=('cargo' 'git') optdepends=('ffmpeg' 'pandoc' 'poppler' 'tesseract' 'imagemagick') -depends=('ripgrep') +depends=('ripgrep' 'xz') conflicts=('ripgrep-all' 'ripgrep-all-bin') -source=("$pkgname::git+https://github.com/phiresky/ripgrep-all") +source=("$_pkgname::git+https://github.com/phiresky/ripgrep-all") sha1sums=('SKIP') pkgver() { - cd "$pkgname" - echo "$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2).$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)" | tr '-' '.' + cd "$_pkgname" + echo "$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2).$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)" | tr '-' '.' +} + +prepare() { + cd ${_pkgname} + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" } build() { - cd $pkgname - export SHELL_COMPLETIONS_DIR="$PWD/completions" - cargo build --release --locked + cd "$_pkgname" + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + cargo build --frozen --release --all-features } - + check() { - cd $pkgname - cargo test --release --locked + cd "$_pkgname" + export RUSTUP_TOOLCHAIN=stable + cargo test --frozen --all-features } - package() { - cd "$srcdir/$pkgname" - install -Dm755 "target/release/rga" "${pkgdir}/usr/bin/rga" - install -Dm755 "target/release/rga-preproc" "${pkgdir}/usr/bin/rga-preproc" - install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md" + cd "$_pkgname" + install -Dm755 "target/release/rga" "${pkgdir}/usr/bin/rga" + install -Dm755 "target/release/rga-preproc" "${pkgdir}/usr/bin/rga-preproc" + install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$_pkgname/LICENSE.md" } - -#package() { -# cd "$srcdir/$_pkgname" -# install -Dm755 target/release/$_pkgname "$pkgdir/usr/bin/$_pkgname" -# install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" |