summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 652f72cb965d3e61cd30d3a0f7d259826a17f3c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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"
}