-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media-video/stremio: new package, add 4.4.164
- Loading branch information
Showing
2 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DIST server.js 6029535 BLAKE2B 222f8f25d12acf3dae0b861e8fdd01ad29aacb9d46ee381faeb29442eb7f0b21002b6f05f818ed7fc9450e7f22d7afd00c08cf4fd171b7e15949d19d878dee86 SHA512 dbd540c3cf88fd53b36fe424f1fb146cb46c41360d7bf35cdb6ade40d34fb1e93aa33c9b1e3a79ff7a74e6f8202fe3407c9ab28878cfd5a5e373ac5a963fe5c0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# Copyright 2024 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
inherit desktop git-r3 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://dl.strem.io/server/v${PV}/desktop/server.js" | ||
|
||
EGIT_REPO_URI="https://github.com/Stremio/stremio-shell.git" | ||
EGIT_COMMIT="v${PV}" | ||
EGIT_SUBMODULES=( '*' '-test-*' ) | ||
|
||
S="${WORKDIR}" | ||
LICENSE="GPL-3" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~arm64 ~x86" | ||
|
||
RESTRICT="bindist mirror test strip" | ||
|
||
RDEPEND=" | ||
gnome-base/librsvg | ||
dev-qt/qtquickcontrols | ||
dev-qt/qtquickcontrols2 | ||
dev-qt/qtopengl | ||
dev-qt/qtwebchannel:5 | ||
dev-qt/qtwebengine:5 | ||
dev-libs/wayland | ||
media-video/mpv | ||
net-libs/nodejs[ssl] | ||
" | ||
|
||
src_configure() { | ||
cd "${P}" | ||
qmake5 | ||
} | ||
|
||
src_compile() { | ||
cd "${P}" | ||
emake -f release.makefile | ||
} | ||
|
||
src_install() { | ||
insinto /opt/stremio | ||
doins "${DISTDIR}"/server.js | ||
doins "${P}"/build/stremio | ||
|
||
dosym "/usr/bin/node" /opt/stremio/node | ||
|
||
dosym "/opt/stremio/stremio" /usr/bin/${PN} | ||
domenu "${S}"/"${P}"/smartcode-stremio.desktop | ||
local x | ||
for x in 16 22 24 32 64 128; do | ||
newicon -s ${x} "${S}"/"${P}"/icons/smartcode-stremio_${x}.png smartcode-stremio.png | ||
done | ||
|
||
fperms +x "/opt/stremio/stremio" | ||
|
||
} | ||
|
||
pkg_postinst() { | ||
xdg_pkg_postinst | ||
} |