git » ripgrep.git » commit 4db3313

Use actual architectures

author Sven-Hendrik Haase
2017-08-31 04:32:34 UTC
committer Sven-Hendrik Haase
2017-08-31 04:32:34 UTC
parent 09af5d272c575bad8f7c837a6c1790db9a1cf19c

Use actual architectures

PKGBUILD +5 -2

diff --git a/PKGBUILD b/PKGBUILD
index 2d95005..dde4da1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
 # Contributor: Andrew Gallant <jamslam@gmail.com>
 pkgname=ripgrep
 pkgver=0.6.0
-pkgrel=1
+pkgrel=2
 pkgdesc="A search tool that combines the usability of ag with the raw speed of grep"
 arch=('i686' 'x86_64')
 url="https://github.com/BurntSushi/ripgrep"
@@ -14,7 +14,10 @@ sha512sums=('219ec95598c080ddeee65233d1abf58320662ef28681a25cdf9fb63fd38bdb149c7
 
 build() {
   cd "$pkgname-$pkgver"
+
   cargo build --release
+  # Use these flags once stable rust gets SIMD suport.
+  # RUSTFLAGS="-C target-feature=+ssse3" cargo build --release --features simd-accel
 }
 
 package() {
@@ -22,8 +25,8 @@ package() {
 
   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-completion "$pkgdir/usr/share/bash-completion/completions/rg"
-  install -Dm644 "target/release/build/ripgrep-"*/out/_rg.ps1 "$pkgdir/usr/share/zsh/site-functions/_rg"
   install -Dm644 "target/release/build/ripgrep-"*/out/rg.fish "$pkgdir/usr/share/fish/completions/rg.fish"
 
   install -Dm644 "doc/rg.1" "$pkgdir/usr/share/man/man1/rg.1"