summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 66fa6502d8b4c8760836e2f5bf56684e976f95df (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
# Maintainer: David Birks <david@tellus.space>

pkgname=auger-git
pkgver=r54.63a4e8a
pkgrel=1
pkgdesc="Tool to directly access data objects stored in etcd by Kubernetes"
url="https://github.com/jpbetz/auger"
license=('Apache')
arch=('x86_64')
source=('auger-git::git+https://github.com/jpbetz/auger')
makedepends=('git' 'go')
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  # LDFLAGS into the GOFLAGS env variable.
  export GOFLAGS="-gcflags=all=-trimpath=${PWD} -asmflags=all=-trimpath=${PWD} -ldflags=-extldflags=-zrelro -ldflags=-extldflags=-znow"

  cd "$srcdir/$pkgname"
  make build
}

package() {
  install -Dm 755 "$srcdir/$pkgname/build/auger" "$pkgdir/usr/bin/auger"
}