From beb0af0976530fe6d25e82e379c5391bbcd1e641 Mon Sep 17 00:00:00 2001 From: Dakota Walsh Date: Sat, 16 Apr 2022 15:52:54 +1200 Subject: [PATCH] New package: hut-0.1.0 This is the official command line client for https://sourcehut.org/ It's basically the sourcehut equivalent to Github's hub or gh tools. It's been in development for a while now, but they've put out their first release earlier this month. I've been using it happily for a while before this release. --- srcpkgs/hut/template | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 srcpkgs/hut/template diff --git a/srcpkgs/hut/template b/srcpkgs/hut/template new file mode 100644 index 000000000000..f1448fcf1f49 --- /dev/null +++ b/srcpkgs/hut/template @@ -0,0 +1,29 @@ +# Template file for 'hut' +pkgname=hut +version=0.1.0 +revision=1 +wrksrc="${pkgname}-v${version}" +build_style=go +build_helper=qemu +go_import_path="git.sr.ht/~emersion/hut" +hostmakedepends="scdoc" +short_desc="CLI tool for sr.ht" +maintainer="Dakota Walsh " +license="AGPL-3.0-only" +homepage="https://git.sr.ht/~emersion/hut" +changelog="https://git.sr.ht/~emersion/hut/log" +distfiles="https://git.sr.ht/~emersion/hut/archive/v${version}.tar.gz" +checksum=5af8f1111f9ec1da9a818978eb1f013dfd50ad4311c79d95b0e62ad428ac1c59 + +post_install() { + hut=$(find $GOPATH/bin -name hut) + for sh in bash fish zsh; do + vtargetrun $hut completion $sh > hut.$sh + vcompletion hut.$sh $sh + done + + vlicense LICENSE + + scdoc < doc/hut.1.scd > doc/hut.1 + vman doc/hut.1 +}