summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3ba224e5eec572293d5f995d3601a81f0b87b851 (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
25
26
27
28
29
30
31
32
# Maintainer: Sorah Fukumori <her@sorah.jp>

pkgname=mairu
pkgdesc="on-memory AWS credentials agent and executor for AWS SSO and others"
pkgver=0.6.0
pkgrel=1
arch=('x86_64' 'aarch64')
url="https://github.com/sorah/mairu"
license=('Apache-2.0')
depends=('openssl')
makedepends=('rust')
_tarball=mairu-$pkgver.tar.gz
source=($_tarball::https://github.com/sorah/mairu/archive/v$pkgver.tar.gz)
sha256sums=('b42e2f7a727752a7d7c659bc5254313f90c7927642b6607a75677231a30a6d83')
sha512sums=('e73d7406913eafe41a6ea577bc6a3b14f1df8cd231a536ef5b34c5d052731ea005a445050964854c3374808d02fcffd7729291c736d49a04bd2d5a4e430d4d62')
install=mairu.install

build() {
  cd "$pkgname-$pkgver"
  cargo build --release --locked
}

check() {
  cd "$pkgname-$pkgver"
  cargo test --release --locked
}

package() {
  cd "$pkgname-$pkgver"
  install -Dm755 "target/release/mairu" "$pkgdir/usr/bin/mairu"
}