Skip to content
Snippets Groups Projects
Commit 688c25db authored by Hoang Nguyen's avatar Hoang Nguyen :turtle: Committed by alice
Browse files

testing/ticker: upgrade to 4.5.4, add completion subpackages

parent c823ec2f
No related branches found
No related tags found
No related merge requests found
# Contributor: Hoang Nguyen <folliekazetani@protonmail.com>
# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
pkgname=ticker
pkgver=4.5.3
pkgver=4.5.4
pkgrel=0
pkgdesc="Terminal stock watcher and stock position tracker"
url="https://github.com/achannarasappa/ticker"
arch="all"
license="GPL-3.0-or-later"
makedepends="go"
subpackages="
$pkgname-bash-completion
$pkgname-fish-completion
$pkgname-zsh-completion
"
source="$pkgname-$pkgver.tar.gz::https://github.com/achannarasappa/ticker/archive/refs/tags/v$pkgver.tar.gz"
export GOCACHE="$srcdir/go-cache"
......@@ -15,7 +20,12 @@ export GOTMPDIR="$srcdir"
export GOMODCACHE="$srcdir/go"
build() {
go build -v -o bin/$pkgname -ldflags "-X github.com/achannarasappa/ticker/cmd.Version=v$pkgver"
go build -v -o bin/ticker \
-ldflags "-X github.com/achannarasappa/ticker/cmd.Version=v$pkgver"
./bin/ticker completion bash > ticker.bash
./bin/ticker completion zsh > ticker.zsh
./bin/ticker completion fish > ticker.fish
}
check() {
......@@ -24,8 +34,15 @@ check() {
package() {
install -Dm755 bin/$pkgname "$pkgdir"/usr/bin/$pkgname
install -Dm644 ticker.bash \
"$pkgdir"/usr/share/bash-completion/completions/ticker
install -Dm644 ticker.fish \
"$pkgdir"/usr/share/fish/completions/ticker.fish
install -Dm644 ticker.zsh \
"$pkgdir"/usr/share/zsh/site-functions/_ticker
}
sha512sums="
75dc25feaa67342547edf346d20b6ed7f5c2022c620f33127c689ee8e4e377465cbb7be45a3005a48dc41e246029c68b75c833300761d2afd9f2f707e71d8a2b ticker-4.5.3.tar.gz
be69f9f03b5efbc9baf45ca7151d02ceb612e015b7db6bf328855372f8d83de337b15312c3507d94dcfd899ec11bb47d66a99ed9549ae0901fe41a2754a898eb ticker-4.5.4.tar.gz
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment