blob: 47cd2113b24759c1c01b01acb307accaf49b9d8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# 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
}
|