blob: 8db1ebe52ab56ccca307aac9a11df0543b75a76e (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop qmake-utils xdg
DESCRIPTION="Stremio is a modern media center for your video entertainment."
HOMEPAGE="https://github.com/Stremio/stremio-shell/ https://www.stremio.com/"
SRC_URI="
https://github.com/Stremio/stremio-shell/archive/refs/tags/v${PV}.tar.gz -> ${PV}-stremio-shell.gh.tar.gz
https://github.com/itay-grudev/SingleApplication/archive/aede311d28d20179216c5419b581087be2a8409f.tar.gz -> ${PV}-singleapplication.gh.tar.gz
https://github.com/Ivshti/libmpv/archive/b0eae77cf6dc59aaf142b7d079cb13a0904fd3ee.tar.gz -> ${PV}-libmpv.gh.tar.gz
https://github.com/Ivshti/razerchroma/archive/99045142479ba0e2fc3b9cccb72e348c67cd5829.tar.gz -> ${PV}-razerchroma.gh.tar.gz
https://dl.strem.io/server/v4.20.8/desktop/server.js -> ${PV}-server.js
"
S="${WORKDIR}/${PN}-shell-${PV}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="
gnome-base/librsvg
dev-qt/qtquickcontrols
dev-qt/qtopengl
dev-qt/qtwebengine:5
media-video/ffmpeg[network]
media-video/mpv
net-libs/nodejs[ssl]
"
src_compile() {
# Move dependencies to build dir
mv ../SingleApplication* ../singleapplication || die
mv ../libmpv* ../libmpv || die
mv ../razerchroma* ../chroma || die
mv -t deps \
../singleapplication \
../libmpv \
../chroma || die
cp "${DISTDIR}"/*server.js server.js || die
eqmake5
emake -f release.makefile
}
src_install() {
# I would prefer to install to /usr/bin but the server won't start unless placed in the same
# directory as a node binary and the server.js file
insinto /opt/stremio
doins build/stremio
doins server.js
dosym -r /usr/bin/node /opt/stremio/node
dosym -r /opt/stremio/stremio /usr/bin/${PN}
domenu smartcode-stremio.desktop
local x
for x in 16 22 24 32 64 128; do
newicon -s ${x} icons/smartcode-stremio_${x}.png smartcode-stremio.png
done
fperms +x /opt/stremio/stremio
}
|