# Contributor: Maxim Karasev # Maintainer: Maxim Karasev pkgname=hut pkgver=0.3.0 pkgrel=4 pkgdesc="command-line tool for sr.ht" url="https://sr.ht/~emersion/hut" arch="all" license="AGPL-3.0-only" makedepends="go scdoc" subpackages="$pkgname-doc $pkgname-zsh-completion $pkgname-bash-completion $pkgname-fish-completion" source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~emersion/hut/archive/v$pkgver.tar.gz" builddir="$srcdir/$pkgname-v$pkgver" options="chmod-clean" export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" build() { make GOFLAGS="$GOFLAGS" all } check() { go test ./... } package() { make DESTDIR="$pkgdir" PREFIX=/usr \ FISHCOMPDIR=/usr/share/fish/vendor_completions.d install } sha512sums=" 41e84329b6d35df1abeca2a84352bd0bafaa7d05e7b36ff106d1c297e021dbc7beddd70c43ebfa02f48bad250469917879ee221a7983d132de8a56bc44e9a26b hut-0.3.0.tar.gz "