mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-18 22:36:59 +02:00
36 lines
946 B
Text
36 lines
946 B
Text
# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
|
|
# Maintainer: Matthias Ahouansou <matthias@ahouansou.cz>
|
|
pkgname=invidtui
|
|
pkgver=0.4.6
|
|
pkgrel=4
|
|
pkgdesc="TUI based Invidious client"
|
|
url="https://darkhz.github.io/invidtui/"
|
|
arch="all"
|
|
license="MIT"
|
|
makedepends="go"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/darkhz/invidtui/archive/refs/tags/v$pkgver.tar.gz"
|
|
options="net"
|
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
export CGO_CFLAGS="$CFLAGS"
|
|
export CGO_LDFLAGS="$LDFLAGS"
|
|
go build
|
|
}
|
|
|
|
check() {
|
|
go test -v ./...
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 invidtui -t "$pkgdir"/usr/bin
|
|
|
|
install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
|
|
}
|
|
|
|
sha512sums="
|
|
f225bff015360a5bceec4350fe7a86c7fda41e34fda16c90de4c40edf1264f1a076f685e8a4160136d94ff3c34ef7efe6832393fd96119f07c031f13bef4fbc1 invidtui-0.4.6.tar.gz
|
|
"
|