supersonic-desktop-wayland/PKGBUILD

42 lines
1.2 KiB
Bash
Raw Permalink Normal View History

2024-03-31 16:44:12 +02:00
# Maintainer: exu <aur _a_ frm01 _d_ net>
2024-03-23 19:05:03 +01:00
pkgname=supersonic-desktop-wayland
2025-02-23 10:00:57 +01:00
pkgver=0.14.0
2024-03-23 19:05:03 +01:00
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'
2024-08-21 09:51:35 +02:00
'libglvnd'
'libx11'
'mpv')
2024-03-23 19:05:03 +01:00
optdepends=('libappindicator-gtk3: Systray indicator support'
2024-08-21 09:51:35 +02:00
'org.freedesktop.secrets: Keyring password store support')
2024-03-23 19:05:03 +01:00
makedepends=('go>=1.17')
2024-08-21 09:51:35 +02:00
provides=('supersonic-desktop')
conflicts=('supersonic-desktop')
2024-03-23 19:05:03 +01:00
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
2025-02-23 10:00:57 +01:00
sha256sums=('8a0a5c3b893b57f2b29f667bb329fc9c32bef8bc95534c566065ea9d058369a3')
2024-03-23 19:05:03 +01:00
build() {
2024-08-21 09:51:35 +02:00
export GOPATH="$srcdir"/gopath
2024-03-23 19:05:03 +01:00
2024-08-21 09:51:35 +02:00
pushd "$srcdir/${_pkgname}-${pkgver}"
2024-03-23 19:05:03 +01:00
2024-08-21 09:51:35 +02:00
go build -mod=readonly -modcacherw -tags=wayland .
2024-06-05 21:43:06 +02:00
2024-08-21 09:51:35 +02:00
popd
2024-03-23 19:05:03 +01:00
}
package() {
2024-08-21 09:51:35 +02:00
pushd "$srcdir/${_pkgname}-${pkgver}"
2024-06-05 21:43:06 +02:00
2024-08-21 09:51:35 +02:00
install -Dm755 "./${_pkgname}" "${pkgdir}/usr/bin/${pkgname%-wayland}"
install -Dm644 "./res/appicon.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-wayland}.png"
install -Dm644 "./res/${pkgname%-wayland}.desktop" "$pkgdir/usr/share/applications/${pkgname%-wayland}.desktop"
2024-03-23 19:05:03 +01:00
2024-08-21 09:51:35 +02:00
popd
2024-03-23 19:05:03 +01:00
}