[arch-commits] Commit in ripgrep/trunk (PKGBUILD)

Sven-Hendrik Haase svenstaro at archlinux.org
Mon Mar 16 13:28:52 UTC 2020


    Date: Monday, March 16, 2020 @ 13:28:51
  Author: svenstaro
Revision: 599719

upgpkg: ripgrep 12.0.0-1

Modified:
  ripgrep/trunk/PKGBUILD

----------+
 PKGBUILD |   18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-16 13:19:16 UTC (rev 599718)
+++ PKGBUILD	2020-03-16 13:28:51 UTC (rev 599719)
@@ -1,7 +1,7 @@
 # Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
 # Contributor: Andrew Gallant <jamslam at gmail.com>
 pkgname=ripgrep
-pkgver=11.0.2
+pkgver=12.0.0
 pkgrel=1
 pkgdesc="A search tool that combines the usability of ag with the raw speed of grep"
 arch=('x86_64')
@@ -10,7 +10,7 @@
 depends=('gcc-libs' 'pcre2')
 makedepends=('cargo' 'asciidoc')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/BurntSushi/$pkgname/archive/$pkgver.tar.gz")
-sha512sums=('62b5bcceac2ca4899e797799e67a8e45730f1bcb5115b48e9ebfe12d3b0e43921020f368e4328b0f5060ccdf0dedb8935857ece7126e05d9cbcca535cee68a92')
+sha512sums=('8c663ac328c528916e46f7c94a6b248c5f572feb2d7d012692b5640f2b5931b8a2d44e3638ea2a1ac9f48f7ec8154b4329fd96218ff84c178705a2c46c04458d')
 
 build() {
   cd "$pkgname-$pkgver"
@@ -18,6 +18,12 @@
   cargo build --release --locked --features 'pcre2'
 }
 
+check() {
+  cd "$pkgname-$pkgver"
+
+  cargo test --release --locked --features 'pcre2'
+}
+
 package() {
   cd "$pkgname-$pkgver"
 
@@ -24,12 +30,12 @@
   install -Dm755 "target/release/rg" "$pkgdir/usr/bin/rg"
 
   install -Dm644 "complete/_rg" "$pkgdir/usr/share/zsh/site-functions/_rg"
-  install -Dm644 "target/release/build/ripgrep-"*/out/rg.bash "$pkgdir/usr/share/bash-completion/completions/rg"
-  install -Dm644 "target/release/build/ripgrep-"*/out/rg.fish "$pkgdir/usr/share/fish/vendor_completions.d/rg.fish"
+  local target_dir=$(ls target/release/build/ripgrep-*/out/rg.bash | head -n1 | xargs dirname)
+  install -Dm644 "$target_dir"/rg.bash "$pkgdir/usr/share/bash-completion/completions/rg"
+  install -Dm644 "$target_dir"/rg.fish "$pkgdir/usr/share/fish/vendor_completions.d/rg.fish"
+  install -Dm644 "$target_dir"/rg.1 "$pkgdir/usr/share/man/man1/rg.1"
 
-  install -Dm644 "target/release/build/ripgrep-"*/out/rg.1 "$pkgdir/usr/share/man/man1/rg.1"
   install -Dm644 "README.md" "$pkgdir/usr/share/doc/${pkgname}/README.md"
-
   install -Dm644 "COPYING" "$pkgdir/usr/share/licenses/${pkgname}/COPYING"
   install -Dm644 "LICENSE-MIT" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE-MIT"
   install -Dm644 "UNLICENSE" "$pkgdir/usr/share/licenses/${pkgname}/UNLICENSE"



More information about the arch-commits mailing list