[arch-commits] Commit in ripgrep/repos/community-x86_64 (PKGBUILD PKGBUILD)

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


    Date: Monday, March 16, 2020 @ 13:29:02
  Author: svenstaro
Revision: 599720

archrelease: copy trunk to community-x86_64

Added:
  ripgrep/repos/community-x86_64/PKGBUILD
    (from rev 599719, ripgrep/trunk/PKGBUILD)
Deleted:
  ripgrep/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   78 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 42 insertions(+), 36 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-16 13:28:51 UTC (rev 599719)
+++ PKGBUILD	2020-03-16 13:29:02 UTC (rev 599720)
@@ -1,36 +0,0 @@
-# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
-# Contributor: Andrew Gallant <jamslam at gmail.com>
-pkgname=ripgrep
-pkgver=11.0.2
-pkgrel=1
-pkgdesc="A search tool that combines the usability of ag with the raw speed of grep"
-arch=('x86_64')
-url="https://github.com/BurntSushi/ripgrep"
-license=('MIT' 'custom')
-depends=('gcc-libs' 'pcre2')
-makedepends=('cargo' 'asciidoc')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/BurntSushi/$pkgname/archive/$pkgver.tar.gz")
-sha512sums=('62b5bcceac2ca4899e797799e67a8e45730f1bcb5115b48e9ebfe12d3b0e43921020f368e4328b0f5060ccdf0dedb8935857ece7126e05d9cbcca535cee68a92')
-
-build() {
-  cd "$pkgname-$pkgver"
-
-  cargo build --release --locked --features 'pcre2'
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-
-  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"
-
-  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"
-}

Copied: ripgrep/repos/community-x86_64/PKGBUILD (from rev 599719, ripgrep/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-03-16 13:29:02 UTC (rev 599720)
@@ -0,0 +1,42 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: Andrew Gallant <jamslam at gmail.com>
+pkgname=ripgrep
+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')
+url="https://github.com/BurntSushi/ripgrep"
+license=('MIT' 'custom')
+depends=('gcc-libs' 'pcre2')
+makedepends=('cargo' 'asciidoc')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/BurntSushi/$pkgname/archive/$pkgver.tar.gz")
+sha512sums=('8c663ac328c528916e46f7c94a6b248c5f572feb2d7d012692b5640f2b5931b8a2d44e3638ea2a1ac9f48f7ec8154b4329fd96218ff84c178705a2c46c04458d')
+
+build() {
+  cd "$pkgname-$pkgver"
+
+  cargo build --release --locked --features 'pcre2'
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+
+  cargo test --release --locked --features 'pcre2'
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+
+  install -Dm755 "target/release/rg" "$pkgdir/usr/bin/rg"
+
+  install -Dm644 "complete/_rg" "$pkgdir/usr/share/zsh/site-functions/_rg"
+  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 "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