Files
guru/media-sound/supersonic/supersonic-0.21.0.ebuild
David Roman 4a70f17c09 media-sound/supersonic: add 0.21.0
Signed-off-by: David Roman <stkw0@disroot.org>
2026-03-24 10:52:31 +01:00

41 lines
939 B
Bash

# Copyright 2023-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop go-module xdg
DESCRIPTION="A lightweight and full-featured cross-platform desktop client"
HOMEPAGE="https://github.com/dweymouth/supersonic"
SRC_URI="https://github.com/dweymouth/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://github.com/gentoo-golang-dist/${PN}/releases/download/v${PV}/${P}-vendor.tar.xz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="
media-libs/libglvnd
media-video/mpv[libmpv]
x11-libs/libX11
x11-libs/libXcursor
x11-libs/libXi
x11-libs/libXinerama
"
RDEPEND="${DEPEND}"
src_compile() {
ego build
}
src_install() {
dobin supersonic
sed -i 's/supersonic-desktop/supersonic/g' "res/${PN}-desktop.desktop" || die
domenu "res/${PN}-desktop.desktop"
local x
for x in 128 256 512; do
newicon -s ${x} res/appicon-${x}.png supersonic.png
done
}