mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-18 07:19:01 -04:00
Signed-off-by: Lucio Sauer <watermanpaint@posteo.net> Signed-off-by: Julien Roy <julien@jroy.ca>
67 lines
1.6 KiB
Bash
67 lines
1.6 KiB
Bash
# Copyright 1999-2022 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit desktop xdg
|
|
|
|
MY_P="nuclear-v${PV}"
|
|
|
|
DESCRIPTION="Nuclear is a streaming program that pulls content from free sources on internet"
|
|
HOMEPAGE="https://nuclear.js.org https://github.com/nukeop/nuclear"
|
|
SRC_URI="https://github.com/nukeop/nuclear/releases/download/v${PV}/${MY_P}.tar.gz -> ${P}.tar.gz"
|
|
|
|
S="${WORKDIR}/${MY_P}"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
DEPEND="
|
|
app-accessibility/at-spi2-atk
|
|
app-accessibility/at-spi2-core
|
|
dev-libs/atk
|
|
dev-libs/libappindicator
|
|
dev-libs/nss
|
|
media-libs/alsa-lib
|
|
net-print/cups
|
|
media-libs/mesa
|
|
x11-libs/gdk-pixbuf
|
|
x11-libs/gtk+
|
|
x11-libs/libdrm
|
|
x11-libs/libnotify
|
|
x11-libs/libXcomposite
|
|
x11-libs/libXdamage
|
|
x11-libs/libXfixes
|
|
x11-libs/libxkbcommon
|
|
x11-libs/libXrandr
|
|
x11-libs/libxshmfence
|
|
x11-libs/libXtst
|
|
x11-libs/pango
|
|
"
|
|
|
|
QA_PREBUILT="opt/nuclear-bin/*"
|
|
|
|
src_install(){
|
|
insinto /opt/"${PN}"
|
|
doins -r "${S}"/*
|
|
dosym -r /opt/"${PN}"/nuclear "${EPREFIX}"/usr/bin/nuclear
|
|
fperms +x /opt/"${PN}"/nuclear
|
|
fperms +x /opt/"${PN}"/chrome-sandbox
|
|
fperms +x /opt/"${PN}"/resources/bin/fpcalc
|
|
make_desktop_entry "/opt/${PN}/nuclear %U" "Nuclear" "nuclear" \
|
|
"Audio;Music;Player;AudioVideo;" \
|
|
"GenericName=Nuclear-bin\nStartupNotify=true\nStartupWMClass=nuclear"
|
|
cd "${S}"/resources/media/ || die
|
|
mv icon.icns nuclear.icns || die
|
|
doicon nuclear.icns
|
|
cd presskit/icons/color || die
|
|
for i in {16,24,32,48,64,96,128,256,512}; do
|
|
mv "${i}".png nuclear-"${i}".png || die
|
|
doicon -s "${i}" nuclear-"${i}".png
|
|
done
|
|
cd ../scalable || die
|
|
mv nuclear-icon.svg nuclear.svg || die
|
|
doicon nuclear.svg
|
|
}
|