# Contributor: omni # Maintainer: omni pkgname=judo pkgver=0.6 pkgrel=6 pkgdesc="Simple orchestration & configuration management" url="https://github.com/rollcat/judo" license="MIT" arch="all" makedepends="go" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/rollcat/judo/archive/refs/tags/$pkgver.tar.gz" export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw" export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" build() { go build -v . } check() { go test -v ./... } package() { install -Dm0755 "$pkgname" -t "$pkgdir"/usr/bin install -Dm0644 license.txt -t "$pkgdir"/usr/share/licenses/"$pkgname" mkdir -p "$pkgdir"/usr/share/doc/"$pkgname" cp -r examples "$pkgdir"/usr/share/doc/"$pkgname"/ } sha512sums=" 927148665a4184b441f464f13ccfaf5dcab4489c9006c89182f80a2505b762178e1e6b45de62a494c4ab844f9bcec7a42978fd3f1bf363f84f6d92078633dfb7 judo-0.6.tar.gz "