summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d6dc5907513a570aababe71ff1dab467e3dbd5e8 (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
# Maintainer: David Birks <david@birks.dev>

pkgname=conftest
pkgver=0.18.2
pkgrel=1
pkgdesc='A utility to help you write tests against structured configuration data'
arch=(x86_64)
url='https://github.com/instrumenta/conftest'
license=(Apache)
makedepends=('go')
source=("$pkgname-$pkgver.tar.gz::https://github.com/instrumenta/conftest/archive/v$pkgver.tar.gz")
sha512sums=('07cd34654bb856d5cbbbce726a7041b1450395cec0389e711f1d623f5c81d797d0befadfa401b7aa60281b11f583b6352002902af2000c34ad721efbbd7ba289')

build() {
  cd $pkgname-$pkgver

  go build \
  --trimpath \
  --ldflags "-X github.com/instrumenta/conftest/internal/commands.version=$pkgver" \
  -o conftest \
  .
}

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