From 25ca9def2f92682c2ceb4693c5d4297358eb1757 Mon Sep 17 00:00:00 2001 From: fanyx Date: Mon, 23 Dec 2024 15:24:07 +0100 Subject: [PATCH] New package: supersonic-desktop-0.13.2 --- srcpkgs/supersonic-desktop/template | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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 00000000000000..d9f7259048f777 --- /dev/null +++ b/srcpkgs/supersonic-desktop/template @@ -0,0 +1,27 @@ +# Template file for 'supersonic-desktop' +pkgname=supersonic-desktop +version=0.13.2 +revision=1 +build_style=go +go_import_path="github.com/dweymouth/supersonic" +hostmakedepends="pkg-config" +makedepends="mpv-devel libXcursor-devel libXxf86vm-devel" +short_desc="Lightweight cross-platform desktop client for self-hosted music servers" +maintainer="fanyx " +license="GPL-3.0-or-later" +homepage="https://github.com/dweymouth/supersonic" +changelog="https://raw.githubusercontent.com/dweymouth/supersonic/refs/heads/main/CHANGELOG.md" +distfiles="https://github.com/dweymouth/supersonic/archive/v${version}.tar.gz" +checksum=39edd84f6049462a1ff944e07270b474b3d8ba3cf42f5edebdc5813583b83bde + +post_install() { + mv "${DESTDIR}/usr/bin/supersonic" "${DESTDIR}/usr/bin/supersonic-desktop" + + vinstall res/appicon.png 644 usr/share/icons supersonic-desktop.png + + for i in 128 256 512; do + vinstall res/appicon-$i.png 644 usr/share/icons/${i}x${i} supersonic-desktop.png + done + + vinstall res/supersonic-desktop.desktop 644 usr/share/applications +}