linux_alpine/srcpkgs/supersonic-desktop/APKBUILD

33 lines
1.1 KiB
Plaintext

# Contributor: ITmodulo <itmodulo@disroot.org>
# Maintainer: ITmodulo <itmodulo@disroot.org>
pkgname=supersonic-desktop
pkgver=0.8.2
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="
72d1913905c0ba9ce048225efb4ce86e0af62b8243b485889c568d039ee219f2029399b1f73b2d40ea9cd62d3b91155a7c7e090bba40c651e7dbaf56c384c53f supersonic-desktop-0.8.2.tar.gz
"