commit 1378401d0ea17b2982e69dc3c60be8287477e85b Author: exu Date: Sat Mar 23 19:05:03 2024 +0100 Initial commit diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..8d36587 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = supersonic-desktop-wayland + pkgdesc = A lightweight cross-platform desktop client for Subsonic and Jellyfin music servers. + pkgver = 0.9.1 + 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 + optdepends = libappindicator-gtk3: Systray indicator support + optdepends = org.freedesktop.secrets: Keyring password store support + source = supersonic-desktop-wayland-0.9.1.tar.gz::https://github.com/dweymouth/supersonic/archive/refs/tags/v0.9.1.tar.gz + sha256sums = 4911901c92883a9912a5b34fdaf524969d959ef9f7fdca19fb9647ace68d7301 + +pkgname = supersonic-desktop-wayland diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0f4c8aa --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +* + +!.gitignore +!.SRCINFO +!PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..3a8140a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: RealStickman + +pkgname=supersonic-desktop-wayland +pkgver=0.9.1 +pkgrel=1 +pkgdesc="A lightweight cross-platform desktop client for Subsonic and Jellyfin music servers." +_pkgname="${pkgname//-desktop-wayland/}" +arch=('x86_64') +url="https://github.com/dweymouth/supersonic" +license=('GPL3') +depends=('glibc' + 'libglvnd' + 'libx11' + 'mpv') +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=("4911901c92883a9912a5b34fdaf524969d959ef9f7fdca19fb9647ace68d7301") + +build() { + export GOPATH="$srcdir"/gopath + + cd "$srcdir/${_pkgname}-${pkgver}" + + go build -mod=readonly -modcacherw -tags=wayland . +} + +package() { + cd "$srcdir/${_pkgname}-${pkgver}" + _output="${srcdir}/${_pkgname}-${pkgver}" + + install -Dm755 "${_output}/${_pkgname}" "${pkgdir}/usr/bin/${pkgname%-wayland}" + install -Dm644 "$srcdir/${_pkgname}-${pkgver}/res/appicon.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-wayland}.png" + install -Dm644 "$srcdir/${_pkgname}-${pkgver}/res/${pkgname%-wayland}.desktop" "$pkgdir/usr/share/applications/${pkgname%-wayland}.desktop" +}