summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-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"
}