summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a62df55dbe1fc08d8e0e842a8bedc40271220857 (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.1
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=('29c6ea79a6c9ae2feb83d65275c1926dffdbcc224d86b0d2083d250b6bffe5eca052673eb299185582d2fc618348bdf3de396c0838ba9db0b1c34ea2be576694')

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"
}