New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New package: hut-0.1.0 #36716
New package: hut-0.1.0 #36716
Conversation
Supercedes #36715 |
The thing causing the build to fail on arm is generating shell completions. The
Number 1 seems to work fine with
Another option would be a switch statement for the arm architectures, but both of these seem hacky and not ideal. Maybe there's a simple environment variable that points to the binary you just installed or something? Will look into this further when I get some more time. Just wanted to update with the current progress. |
I was able to get it to work with diff --git a/srcpkgs/hut/template b/srcpkgs/hut/template
index 25f1d9bdd2..f1448fcf1f 100644
--- a/srcpkgs/hut/template
+++ b/srcpkgs/hut/template
@@ -4,6 +4,7 @@ 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"
@@ -15,13 +16,11 @@ distfiles="https://git.sr.ht/~emersion/hut/archive/v${version}.tar.gz"
checksum=5af8f1111f9ec1da9a818978eb1f013dfd50ad4311c79d95b0e62ad428ac1c59
post_install() {
- $GOPATH/bin/hut completion bash >hut.bash
- $GOPATH/bin/hut completion zsh >hut.zsh
- $GOPATH/bin/hut completion fish >hut.fish
-
- vcompletion hut.bash bash
- vcompletion hut.zsh zsh
- vcompletion hut.fish fish
+ 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 |
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.
Huh perhaps I made a typo when I tried earlier. Just made that change and force pushed. Seems to be working now! |
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.
Testing the changes
New package
Local build testing