maintainer="Hoang Nguyen " pkgname=jsonnet-language-server pkgver=0.15.0 pkgrel=4 pkgdesc="Jsonnet language server" url="https://github.com/grafana/jsonnet-language-server" arch="all" license="AGPL-3.0-or-later" makedepends="go" source="$pkgname-$pkgver.tar.gz::https://github.com/grafana/jsonnet-language-server/archive/refs/tags/v$pkgver.tar.gz" options="net" # download Go modules export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" build() { go build -v -ldflags "-X main.version=v$pkgver" } check() { go test ./... } package() { install -Dm755 $pkgname -t "$pkgdir"/usr/bin/ } sha512sums=" 10c994c911d302be3fff8168c1d0f359f3e7fb83500a508f9baa778620b19e29821cdd283db7ab1bc9ee4e2c09011024a2c99df031d41fa90f645cc91cc88090 jsonnet-language-server-0.15.0.tar.gz "