summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 13d9b80ee7ddb430fa866fccfaf9ec770c728c63 (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: Stefan Sundin <stefan at stefansundin dot com>
pkgname=aws-rotate-key
pkgver=1.1.0
pkgrel=2
pkgdesc="Easily rotate your AWS access key. 🔑"
arch=('i686' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64' 'riscv64')
url="https://github.com/stefansundin/aws-rotate-key"
license=('MIT')
depends=()
makedepends=(go)

source=("https://github.com/stefansundin/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('0ecb4830dde426702629430889a8bcd4acddae9aab2d8f03ddab6514a3f966ef')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  go build -ldflags='-s -w' -trimpath
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  install -Dm755 aws-rotate-key "${pkgdir}/usr/bin/aws-rotate-key"
}