From 3c0c56bd2f0589d1e0a501d18f71891cf986927c Mon Sep 17 00:00:00 2001 From: michalszmidt Date: Fri, 29 Dec 2023 18:19:50 +0100 Subject: [PATCH] New package: supersonic-desktop-0.8.2 --- .../files/supersonic.desktop | 10 +++++++ srcpkgs/supersonic-desktop/template | 28 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 srcpkgs/supersonic-desktop/files/supersonic.desktop create mode 100644 srcpkgs/supersonic-desktop/template diff --git a/srcpkgs/supersonic-desktop/files/supersonic.desktop b/srcpkgs/supersonic-desktop/files/supersonic.desktop new file mode 100644 index 0000000000000..932a02f899d2f --- /dev/null +++ b/srcpkgs/supersonic-desktop/files/supersonic.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Version=1.0 +Name=Supersonic +Comment=A lightweight cross-platform desktop client for Subsonic music servers +Path=/usr/bin +Exec=supersonic +Terminal=false +Icon=/usr/share/pixmaps/supersonic/appicon.png +Categories=Audio;AudioVideo diff --git a/srcpkgs/supersonic-desktop/template b/srcpkgs/supersonic-desktop/template new file mode 100644 index 0000000000000..8a0bc3e2dbca0 --- /dev/null +++ b/srcpkgs/supersonic-desktop/template @@ -0,0 +1,28 @@ +# Template file for 'supersonic-desktop' +pkgname=supersonic-desktop +version=0.8.2 +revision=1 +build_style=go +go_import_path="github.com/dweymouth/supersonic" +hostmakedepends="pkg-config gcc" +makedepends="libglvnd-devel mpv-devel libX11-devel libappindicator-devel libsecret-devel libXxf86vm-devel" +depends="libsecret libappindicator" +short_desc="Full-featured, mpv-based desktop client written in go for Subsonic and Jellyfin servers" +maintainer="ITmodulo " +license="GPL-3.0" +homepage="https://github.com/dweymouth/supersonic" +distfiles="https://github.com/dweymouth/supersonic/archive/refs/tags/v${version}.tar.gz" +checksum=55ce49566d3350fe789934310509763dc2646ea09cc5c8d364daca49d692b185 + +post_build() { + # go install command has no possibility to change output file name + # https://github.com/golang/go/issues/47176 + # There is confilicting supersonic package on GitHub, see repology + mv ${GOPATH}/bin/supersonic ${GOPATH}/bin/supersonic-desktop +} + +post_install() { + mv res/appicon.png res/supersonic-desktop.png + vinstall res/supersonic-desktop.png 644 usr/share/pixmaps + vinstall res/supersonic-desktop.desktop 644 usr/share/applications +}