aports/testing/ostui/APKBUILD
2025-03-17 22:41:05 +00:00

33 lines
975 B
Text

# Contributor: Sean E. Russell <ser@ser1.net>
# Maintainer: Sean E. Russell <ser@ser1.net>
pkgname=ostui
pkgver=0.2.2
pkgrel=0
pkgdesc="A terminal client for OpenSubsonic servers"
url="https://git.sr.ht/~ser/ostui"
arch="all"
license="GPL-3.0-or-later"
makedepends="go>=1.24.0 mpv-dev"
subpackages="$pkgname-doc"
options="net" # go modules
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~ser/ostui/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
build() {
go build -ldflags "-X main.Version=v$pkgver" -v .
}
check() {
go test ./...
[ "$(./ostui -version)" = "ostui v$pkgver" ]
}
package() {
install -Dm755 $pkgname -t "$pkgdir"/usr/bin/
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/"$pkgname"/
install -Dm644 README.md CHANGELOG.md -t "$pkgdir"/usr/share/doc/"$pkgname"/
}
sha512sums="
e5204f3a194493664352dfae8a1bebb918949758fd36d36dc1287935b8ea935b4dfc47eb552a375823040063e3385c7c31ab56e0f7a8d9908a626de9feb106ac ostui-0.2.2.tar.gz
"