summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Maclennan2020-03-07 22:30:37 +0300
committerCaleb Maclennan2020-03-07 22:44:00 +0300
commitfe448d5fbd8d486609ffe156537fdc1801150b09 (patch)
tree9cd89c9a2e02ab574df425e12a10fd49ad887944
downloadaur-sear.tar.gz
Initial packaging
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD29
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8b7e11b238f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = sear
+ pkgdesc = Signed/Encrypted ARchive
+ pkgver = 0.0.0
+ pkgrel = 1
+ url = https://github.com/iqlusioninc/sear
+ arch = x86_64
+ license = MIT
+ license = Apache
+ makedepends = cargo
+ source = sear-0.0.0.zip::https://github.com/iqlusioninc/sear/archive/ba1f37f5dd1a32c5de2a20e8c385678d95d403a8.zip
+ sha256sums = 391e5fd18fa7ca14eb866b448f8e5efe355c276cf4b78814c97bdaffb25f8811
+
+pkgname = sear
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2984489c87f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Caleb Maclennnan <caleb@alerque.com>
+
+# TODO:
+# * upstream 0.0.0 released to crates.io but not tagged,
+# drop $_sha and switch source to *.tar.gz when repo gets tagged
+
+pkgname=sear
+pkgver=0.0.0
+_sha=ba1f37f5dd1a32c5de2a20e8c385678d95d403a8
+pkgrel=1
+pkgdesc="Signed/Encrypted ARchive"
+arch=('x86_64')
+url="https://github.com/iqlusioninc/$pkgname"
+license=('MIT' 'Apache')
+makedepends=('cargo')
+source=("$pkgname-$pkgver.zip::$url/archive/$_sha.zip")
+sha256sums=('391e5fd18fa7ca14eb866b448f8e5efe355c276cf4b78814c97bdaffb25f8811')
+
+build() {
+ cd "$pkgname-$_sha"
+ cargo build --release --locked --all-features
+}
+
+package() {
+ cd "$pkgname-$_sha"
+ install -Dm755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
+ install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
+ install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}