blob: 7905dab325b7a7eab3975781b32f5fc0a31d5259 (
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=opa
pkgver=0.17.3
pkgrel=1
pkgdesc='Command-line utility and REPL for Open Policy Agent'
arch=(x86_64)
url='https://github.com/open-policy-agent/opa'
license=(Apache)
makedepends=('go')
source=("$pkgname-$pkgver.tar.gz::https://github.com/open-policy-agent/opa/archive/v$pkgver.tar.gz")
sha256sums=('998e6af2ed46f30324e004e075bd18ed9918159de6ddf4ac19ff2b2972ead9fb')
build() {
cd $pkgname-$pkgver
go build \
--trimpath \
--ldflags "-X github.com/open-policy-agent/opa/version.Version=$pkgver" \
-o opa \
.
}
package() {
install -Dm 755 "$srcdir/$pkgname-$pkgver/$pkgname" "$pkgdir/usr/bin/$pkgname"
}
|