# Contributor: ITmodulo # Maintainer: ITmodulo pkgname=supersonic-desktop pkgver=0.9.0 pkgrel=0 pkgdesc="Full-featured, mpv-based music player for Subsonic and Jellyfin servers" url="https://github.com/dweymouth/supersonic" license="GPL-3.0-or-later" arch="all" makedepends="go gcc g++ mpv-dev libayatana-appindicator-dev libsecret-dev glib-dev libx11-dev" depends="libayatana-appindicator libsecret" source="$pkgname-$pkgver.tar.gz::https://github.com/dweymouth/supersonic/archive/refs/tags/v$pkgver.tar.gz" build() { cd "supersonic-$pkgver" go build -ldflags="-s -w" -o bin/$pkgname } check() { go test ./... } package() { cd "src/supersonic-$pkgver" install -Dm755 bin/$pkgname "$pkgdir"/usr/bin/$pkgname install -Dm644 res/appicon.png "$pkgdir"/usr/share/pixmaps/supersonic-desktop.png install -Dm644 res/supersonic-desktop.desktop "$pkgdir"/usr/share/applications/supersonic-desktop.desktop } sha512sums=" edd333e050694581eca4ff31eb38a0d200f3e63a134931c53117047a04944176aeffcbf518482050e153f6e13e65aa82b099445a873f17662a9e53554d6af890 supersonic-desktop-0.9.0.tar.gz "