summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorWesley Moore2021-09-29 17:03:20 +1000
committerWesley Moore2021-09-29 17:03:20 +1000
commit219e8ac534e8b455c5e95efc885c8047cbd4fb12 (patch)
treeb090d3a385cf2b5791f42889b765fb9fb36ec0c2
downloadaur-amber-secrets.tar.gz
Initial commit
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD24
2 files changed, 38 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..189a3921fb4
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = amber-secrets
+ pkgdesc = Manage secret values in-repo via public key cryptography
+ pkgver = 0.1.1
+ pkgrel = 1
+ url = https://github.com/fpco/amber
+ arch = x86_64
+ license = MIT
+ makedepends = cargo
+ depends = libsodium
+ conflicts = amber
+ source = amber-secrets-0.1.1.tar.gz::https://github.com/fpco/amber/archive/v0.1.1.tar.gz
+ sha256sums = 7c20e7953ac350cf70c1e964d8e2a43a1b3abf59452aee75724c85a9c04127c0
+
+pkgname = amber-secrets
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..652f72cb965
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Wesley Moore <wes@wezm.net>
+pkgname=amber-secrets
+_pkgname=amber
+pkgver=0.1.1
+pkgrel=1
+pkgdesc="Manage secret values in-repo via public key cryptography"
+arch=("x86_64")
+url="https://github.com/fpco/amber"
+license=("MIT")
+conflicts=('amber')
+depends=('libsodium')
+makedepends=('cargo')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha256sums=('7c20e7953ac350cf70c1e964d8e2a43a1b3abf59452aee75724c85a9c04127c0')
+
+build() {
+ cd "$_pkgname-$pkgver"
+ SODIUM_USE_PKG_CONFIG=1 cargo build --release --locked
+}
+
+package() {
+ install -Dm755 "$srcdir/$_pkgname-$pkgver/target/release/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
+ install -Dm644 "$srcdir/$_pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}