mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 16:06:42 +02:00
49 lines
1.4 KiB
Text
49 lines
1.4 KiB
Text
# Contributor: Hoang Nguyen <folliekazetani@protonmail.com>
|
|
maintainer="Hoang Nguyen <folliekazetani@protonmail.com>"
|
|
pkgname=ticker
|
|
pkgver=4.8.1
|
|
pkgrel=1
|
|
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"
|
|
options="net" # download Go modules
|
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
go build -v -ldflags "-X github.com/achannarasappa/ticker/cmd.Version=v$pkgver"
|
|
|
|
for shell in bash zsh fish; do
|
|
./ticker completion $shell > ticker.$shell
|
|
done
|
|
}
|
|
|
|
check() {
|
|
# yahoo quote tests fail because failing connection to guce.yahoo.com
|
|
go test -skip TestQuote ./...
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 ticker -t "$pkgdir"/usr/bin/
|
|
|
|
install -Dm644 ticker.bash \
|
|
"$pkgdir"/usr/share/bash-completion/completions/ticker
|
|
install -Dm644 ticker.fish \
|
|
"$pkgdir"/usr/share/fish/vendor_completions.d/ticker.fish
|
|
install -Dm644 ticker.zsh \
|
|
"$pkgdir"/usr/share/zsh/site-functions/_ticker
|
|
}
|
|
|
|
sha512sums="
|
|
8fef849ffc2cde0292217a9557532dac2292288d2ce196caaf885ad6de8eb5056833956f6c01a07c4dd4ee6ecc4bc323b8999d7a890a8d311267a039769c135e ticker-4.8.1.tar.gz
|
|
"
|