From e5e38b4c87efc308acd61a48657f18dce99cca09 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 --- srcpkgs/supersonic-desktop/template | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 srcpkgs/supersonic-desktop/template 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 +}