blob: ea47773758c4c2987727cf314b37803d991c115b (
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
|
# Contributor: Hoang Nguyen <folliekazetani@protonmail.com>
# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
pkgname=cointop
pkgver=1.6.10
pkgrel=4
pkgdesc="TUI application for tracking cryptocurrencies"
url="https://github.com/cointop-sh/cointop"
arch="all"
license="Apache-2.0"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/cointop-sh/cointop/archive/refs/tags/v$pkgver.tar.gz"
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
build() {
go build -v -o bin/$pkgname -ldflags "-X github.com/cointop-sh/cointop/cointop.version=v$pkgver"
}
check() {
go test ./...
}
package() {
install -Dm755 bin/$pkgname "$pkgdir"/usr/bin/$pkgname
}
sha512sums="
223225fe61f46ba51e12bf37108ea86ad3131edbc48317f08ef6cfcc5b4d225ed148996f6f0ca9eedea3c2d4b3f63b52b1d174f72712558618b734437b36f9f6 cointop-1.6.10.tar.gz
"
|