summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorWesley Moore2021-09-29 17:03:20 +1000
committerWesley Moore2021-09-29 17:03:20 +1000
commit219e8ac534e8b455c5e95efc885c8047cbd4fb12 (patch)
treeb090d3a385cf2b5791f42889b765fb9fb36ec0c2 /PKGBUILD
downloadaur-amber-secrets.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD24
1 files changed, 24 insertions, 0 deletions
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"
+}