diff options
author | wcasanova | 2020-01-19 23:15:49 -0300 |
---|---|---|
committer | wcasanova | 2020-01-19 23:15:49 -0300 |
commit | f15d7bd183e7aee380ce3a2891ee852b5a7540e1 (patch) | |
tree | 4d7ba67668d0c621f6b744a75e35b8df918e4542 | |
download | aur-f15d7bd183e7aee380ce3a2891ee852b5a7540e1.tar.gz |
ripgrep-all-git
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 43 |
2 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b2a3313756de --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +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 + pkgrel = 1 + url = https://github.com/phiresky/ripgrep-all + arch = i686 + arch = x86_64 + license = AGPL3 + makedepends = cargo + makedepends = git + depends = ripgrep + optdepends = ffmpeg + optdepends = pandoc + optdepends = poppler + optdepends = tesseract + optdepends = imagemagick + conflicts = ripgrep-all + conflicts = ripgrep-all-bin + source = ripgrep-all-git::git+https://github.com/phiresky/ripgrep-all + sha1sums = SKIP + +pkgname = ripgrep-all-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ffcc62b5dd41 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: walter <wcasanova [at] disroot dot com> +pkgname=ripgrep-all-git +_pkgname=ripgrep-all +pkgver=0.9.4.alpha.0.154.g235ee0a +pkgrel=1 +pkgdesc="rga: ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz, etc." +arch=('i686' 'x86_64') +url="https://github.com/phiresky/ripgrep-all" +license=('AGPL3') +makedepends=('cargo' 'git') +optdepends=('ffmpeg' 'pandoc' 'poppler' 'tesseract' 'imagemagick') +depends=('ripgrep') +conflicts=('ripgrep-all' 'ripgrep-all-bin') +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 '-' '.' +} + +build() { + cd $pkgname + export SHELL_COMPLETIONS_DIR="$PWD/completions" + cargo build --release --locked +} + +check() { + cd $pkgname + cargo test --release --locked +} + +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" +} + +#package() { +# cd "$srcdir/$_pkgname" +# install -Dm755 target/release/$_pkgname "$pkgdir/usr/bin/$_pkgname" +# install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" |