summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorquininer2018-07-30 11:51:59 +0800
committerquininer2018-07-30 11:51:59 +0800
commit6794967018cbb6d5e2dacf6542d54dd112396459 (patch)
treee5bba9b8d85ed02b957625be77bd7ed1b9d96fc7 /PKGBUILD
downloadaur-6794967018cbb6d5e2dacf6542d54dd112396459.tar.gz
init
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..896c6c28f01
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+pkgname=ene-git
+_pkgname=ene
+pkgdesc="An experimental end to end email encryption tool"
+pkgrel=1
+pkgver=0.1.0.56
+arch=('i686' 'x86_64')
+conflicts=("ene")
+provides=("ene")
+url="https://github.com/quininer/ene"
+license=('MIT')
+depends=()
+makedepends=('rust' 'cargo')
+source=("$_pkgname::git+https://github.com/quininer/ene")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $_pkgname
+ echo "$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2|cut -d\- -f1).$(git rev-list --count HEAD)"
+}
+
+build() {
+ cd $_pkgname
+ env CARGO_INCREMENTAL=0 cargo build --features post-quantum --release
+}
+
+package() {
+ cd $_pkgname
+ install -D -m755 "$srcdir/$_pkgname/target/release/ene" "$pkgdir/usr/bin/ene"
+}