# Contributor: Grigory Kirillov # Maintainer: Patrycja Rosa pkgname=gum pkgver=0.11.0 pkgrel=3 pkgdesc="Highly configurable utilities for writing interactive shell scripts" url="https://github.com/charmbracelet/gum" arch="all" license="MIT" 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="${GOCACHE:-"$srcdir/go-cache"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" build() { mkdir builddir go build -v \ -trimpath \ -ldflags "-X main.Version=$pkgver -extldflags \"$LDFLAGS\"" \ -o builddir . ./builddir/gum man > builddir/gum.1 ./builddir/gum completion bash > completion.bash ./builddir/gum completion fish > completion.fish ./builddir/gum completion zsh > completion.zsh } check() { ./builddir/gum --version } package() { install -Dm755 builddir/gum "$pkgdir"/usr/bin/gum install -Dm644 builddir/gum.1 "$pkgdir"/usr/share/man/man1/gum.1 install -Dm644 completion.bash "$pkgdir"/usr/share/bash-completion/completions/gum install -Dm644 completion.fish "$pkgdir"/usr/share/fish/vendor_completions.d/gum.fish install -Dm644 completion.zsh "$pkgdir"/usr/share/zsh/site-functions/_gum } sha512sums=" a937e7439acea3fec4e12aaee74b326c1b622ef65ebb508d67571ca847f8103abab84fb582214f504bc622c1b5e74e57f91a2292d43fa89819f4c853b64a8b85 gum-v0.11.0.tar.gz "