summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorquininer2018-07-31 14:35:46 +0800
committerquininer2018-07-31 14:35:46 +0800
commit8470d232276233c7e05063ec80f05a12b0a6bf44 (patch)
tree4cdf4499bdf743ef9b9af17a0b05056e53354cd5 /PKGBUILD
parent6794967018cbb6d5e2dacf6542d54dd112396459 (diff)
downloadaur-8470d232276233c7e05063ec80f05a12b0a6bf44.tar.gz
enable simd and add shell completions
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD10
1 files changed, 7 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 896c6c28f01..a45d9eeb69b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@ pkgname=ene-git
_pkgname=ene
pkgdesc="An experimental end to end email encryption tool"
pkgrel=1
-pkgver=0.1.0.56
+pkgver=0.1.0.63
arch=('i686' 'x86_64')
conflicts=("ene")
provides=("ene")
@@ -20,10 +20,14 @@ pkgver() {
build() {
cd $_pkgname
- env CARGO_INCREMENTAL=0 cargo build --features post-quantum --release
+ env CARGO_INCREMENTAL=0 RUSTFLAGS="-C target-feature=+ssse3,+avx2,+aes" cargo build --features post-quantum --release
}
package() {
cd $_pkgname
- install -D -m755 "$srcdir/$_pkgname/target/release/ene" "$pkgdir/usr/bin/ene"
+ install -Dm755 "$srcdir/$_pkgname/target/release/ene" "$pkgdir/usr/bin/ene"
+ install -Dm644 "target/release/build/ene-"*/out/_ene "$pkgdir/usr/share/bash-completion/completions/ene"
+ install -Dm644 "target/release/build/ene-"*/out/ene.bash "$pkgdir/usr/share/zsh/site-functions/_ene"
+ install -Dm644 "target/release/build/ene-"*/out/ene.fish "$pkgdir/usr/share/fish/completions/ene.fish"
+ install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}