blob: 74f2dcb52b143f605661b4812b34626430a240f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer: Grigory Kirillov <txgk@bk.ru>
pkgname=gum
pkgver=0.3.0
pkgrel=0
pkgdesc="Tool for glamorous shell scripts"
url="https://github.com/charmbracelet/gum"
arch="all"
license="MIT"
options="!check" # no test suite
subpackages="
$pkgname-doc
$pkgname-bash-completion
$pkgname-fish-completion
$pkgname-zsh-completion
"
makedepends="go"
source="https://github.com/charmbracelet/gum/archive/v$pkgver/gum-v$pkgver.tar.gz"
export GOCACHE="$srcdir/go-cache"
export GOTMPDIR="$srcdir"
export GOMODCACHE="$srcdir/go"
build() {
go build .
./gum man > gum.1
./gum completion bash > completion.bash
./gum completion fish > completion.fish
./gum completion zsh > completion.zsh
}
package() {
install -Dm755 gum -t "$pkgdir"/usr/bin
install -Dm644 gum.1 -t "$pkgdir"/usr/share/man/man1
install -Dm644 completion.bash "$pkgdir"/usr/share/bash-completion/completions/gum
install -Dm644 completion.fish "$pkgdir"/usr/share/fish/completions/gum.fish
install -Dm644 completion.zsh "$pkgdir"/usr/share/zsh/site-functions/_gum
}
sha512sums="
99dcbd799a88bdd5b2952f47417b78b5dfe857dd38eb575c712bd62e12d59b88eb73caee716194ca60c934dd6bf491678b2ee679b02857ec69eb03f9f315e080 gum-v0.3.0.tar.gz
"
|