# Maintainer: pkgname=wire-go pkgver=0.5.0 pkgrel=12 pkgdesc="Compile-time Dependency Injection for Go" url="https://github.com/google/wire" arch="all" license="Apache-2.0" makedepends="go" source="$pkgname-$pkgver.tar.gz::https://github.com/google/wire/archive/refs/tags/v$pkgver.tar.gz" options="chmod-clean net !check" # generation differs from golden file builddir="$srcdir/wire-$pkgver" export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" prepare() { default_prepare go mod download } build() { go build ./cmd/wire } check() { go test ./... } package() { install -Dm755 wire -t "$pkgdir"/usr/bin/ } sha512sums=" 2dce6c91c6d6c63dec8a2267f17a1e302028e32ec63f3607a0eb9da9c5cf5de83fdf257752df447abab4799d130cfca6cc5cc5159f8185cd37d10f1852821484 wire-go-0.5.0.tar.gz "