Package Details: hut-git r244.ed21e0c-1

Git Clone URL: https://aur.archlinux.org/hut-git.git (read-only, click to copy)
Package Base: hut-git
Description: A CLI tool for sr.ht (sourcehut)
Upstream URL: https://sr.ht/~emersion/hut
Keywords: sourcehut
Licenses: AGPL3
Conflicts: hut
Provides: hut
Submitter: xenrox
Maintainer: xenrox
Last Packager: xenrox
Votes: 2
Popularity: 0.000042
First Submitted: 2021-12-19 15:18 (UTC)
Last Updated: 2022-03-21 12:01 (UTC)

Dependencies (3)

Required by (0)

Sources (1)

Latest Comments

ardency commented on 2022-12-12 13:38 (UTC)

nice! :3 i was hoping this existed on aur <3 thx for maintaining

whynothugo commented on 2022-03-21 15:13 (UTC)

Thanks!

xenrox commented on 2022-03-21 12:02 (UTC)

Both done!

whynothugo commented on 2022-03-21 11:55 (UTC)

I can confirm this works on ARM. Can you add aarch64 to the arch= array?

Oh, adding soucehut to package keywords might be useful (that's in the AUR interface, not in the PKGBUILD).

minus commented on 2022-02-13 08:26 (UTC)

It'd be nice if you could put "sourcehut" in the description so it's easier to find

xenrox commented on 2022-01-09 12:47 (UTC)

Included the completions now, thanks!

xenrox commented on 2021-12-29 01:31 (UTC)

Hello,

we are not sure yet how we want to ship auto-completion. I have started a thread on the hut-dev mailing list if you want to weigh in: https://lists.sr.ht/~emersion/hut-dev/%3C20211229012903.wgkrjvjiwszea4e6%40xenrox.net%3E

minus commented on 2021-12-28 12:39 (UTC) (edited on 2021-12-28 12:40 (UTC) by minus)

Could you please update this to include completions?

diff --git a/PKGBUILD b/PKGBUILD
index 306d544..c8c36ac 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@

 pkgname=hut-git
 _pkgname=hut
-pkgver=r22.0f6cad4
+pkgver=r69.37c5609
 pkgrel=1
 pkgdesc='A CLI tool for sr.ht'
 arch=('x86_64')
@@ -32,9 +32,17 @@ build() {
     export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"

     make -e
+
+    ./$_pkgname completion bash > completion.bash
+    ./$_pkgname completion fish > completion.fish
+    ./$_pkgname completion zsh > completion.zsh
 }

 package() {
     cd "$srcdir/$_pkgname"
     make PREFIX=/usr DESTDIR=$pkgdir install
+    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+    install -Dm644 completion.bash "$pkgdir/usr/share/bash-completion/completions/$_pkgname"
+    install -Dm644 completion.fish "$pkgdir/usr/share/fish/vendor_completions.d/$_pkgname.fish"
+    install -Dm644 completion.zsh "$pkgdir/usr/share/zsh/site-functions/_$_pkgname"
 }