addpkg: supersonic-desktop

This commit is contained in:
Peter Cai 2025-04-05 16:48:16 -04:00
parent 2eb3d5b449
commit 583a866ac4
4 changed files with 74 additions and 1 deletions

View file

@ -1,6 +1,8 @@
(For a brief guide to installation, see `INSTALLATION.md`)
This is a collection of a few packages used for running [Arch Linux ARM](https://archlinuxarm.org/) on a ClockworkPi uConsole with RaspberryPi CM5. Most of these packages should still apply for RaspberryPi CM4, though.
This is a collection of a few packages used for running [Arch Linux ARM](https://archlinuxarm.org/) on a ClockworkPi uConsole with RaspberryPi CM5. Most of these packages _should_ still apply for RaspberryPi CM4, though.
(Yes, there are also packages from AUR that I personally use included here.)
Prebuilt binary packages are available through

View file

@ -0,0 +1,20 @@
pkgbase = supersonic-desktop
pkgdesc = A lightweight cross-platform desktop client for Subsonic music servers
pkgver = 0.14.0
pkgrel = 1
url = https://github.com/dweymouth/supersonic
arch = x86_64
license = GPL3
makedepends = go>=1.17
depends = glibc
depends = libglvnd
depends = libx11
depends = mpv
depends = libxinerama
depends = libxi
optdepends = libappindicator-gtk3: Systray indicator support
optdepends = org.freedesktop.secrets: Keyring password store support
source = supersonic-desktop-0.14.0.tar.gz::https://github.com/dweymouth/supersonic/archive/refs/tags/v0.14.0.tar.gz
sha256sums = 8a0a5c3b893b57f2b29f667bb329fc9c32bef8bc95534c566065ea9d058369a3
pkgname = supersonic-desktop

6
pkgs/supersonic-desktop/.gitignore vendored Normal file
View file

@ -0,0 +1,6 @@
/*.tar.xz
/*.tar.gz
/*.tar.zst
/pkg
/src
/supersonic-desktop*

View file

@ -0,0 +1,45 @@
# Maintainer: Dušan Mitrović <dusan@dusanmitrovic.xyz>
pkgname=supersonic-desktop
pkgver=0.14.0
pkgrel=1
pkgdesc="A lightweight cross-platform desktop client for Subsonic music servers"
_pkgname="${pkgname//-desktop/}"
arch=('x86_64' 'aarch64')
url="https://github.com/dweymouth/supersonic"
license=('GPL3')
depends=(
'glibc'
'libglvnd'
'libx11'
'mpv'
'libxinerama'
'libxi'
)
optdepends=(
"libappindicator-gtk3: Systray indicator support"
"org.freedesktop.secrets: Keyring password store support"
)
makedepends=('go>=1.17')
source=(
"${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz"
)
sha256sums=(
"8a0a5c3b893b57f2b29f667bb329fc9c32bef8bc95534c566065ea9d058369a3"
)
build() {
export GOPATH="$srcdir"/gopath
cd "$srcdir/${_pkgname}-${pkgver}"
go build -mod=readonly -modcacherw .
}
package() {
cd "$srcdir/${_pkgname}-${pkgver}"
_output="${srcdir}/${_pkgname}-${pkgver}"
install -Dm755 "${_output}/${_pkgname}" "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 "$srcdir/${_pkgname}-${pkgver}/res/appicon.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
install -Dm644 "$srcdir/${_pkgname}-${pkgver}/res/${pkgname}.desktop" "$pkgdir/usr/share/applications/${pkgname}.desktop"
}