64 lines
2.4 KiB
Bash
64 lines
2.4 KiB
Bash
# Template file for 'stremio-shell'
|
|
pkgname=stremio-shell
|
|
version=4.4.159
|
|
revision=1
|
|
_singleapplication_hash=f1e15081dc57a9c03f7f4f165677f18802e1437a
|
|
_libmpv_hash=822a41a1087daf2911fc336fbd9509f962158fef
|
|
create_wrksrc=yes
|
|
build_style=qmake
|
|
hostmakedepends="qt5-host-tools qt5-qmake"
|
|
makedepends="mpv-devel qt5-webview-devel qt5-webengine-devel
|
|
qt5-declarative-devel qt5-webchannel-devel qt5-location-devel
|
|
qt5-quickcontrols2-devel qt5-quickcontrols chromaprint-devel"
|
|
depends="qt5-quickcontrols qt5-quickcontrols2 virtual?nodejs-runtime
|
|
qt5-webengine"
|
|
short_desc="Hub for video content aggregation"
|
|
maintainer="mobinmob <mobinmob@disroot.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://www.stremio.com"
|
|
distfiles="https://github.com/Stremio/stremio-shell/archive/v${version}.tar.gz
|
|
https://github.com/itay-grudev/SingleApplication/archive/${_singleapplication_hash}.tar.gz
|
|
https://github.com/Ivshti/libmpv/archive/${_libmpv_hash}.tar.gz
|
|
https://dl.strem.io/four/v${version}/server.js
|
|
https://dl.strem.io/four/v${version}/stremio.asar"
|
|
checksum="aca0e5bf026e31399571f5cdc1485cbb2540e7ad7b981f10adb0e87ee47b9af5
|
|
ddab4bec60e4221580f8bb65ac200619bd2d1c9144a8ac7dccc0c78ea4667dc2
|
|
e0545772ca819236926eb118c2f211f05e01f510c1c1a89758895919ed5718d4
|
|
c31c98fe4cd8158523c45685ba2a949cffd3fc0f06dffef66797d07e3a2bbbee
|
|
d01ba5d69cf0e94f3d44c8e4ed5b10eaab67e83398a7d86f86f378ade59cf8f9"
|
|
skip_extraction="server.js stremio.asar"
|
|
|
|
post_extract() {
|
|
mv stremio-shell-$version/* .
|
|
rmdir deps/singleapplication
|
|
mv SingleApplication-${_singleapplication_hash} deps/singleapplication
|
|
rmdir deps/libmpv
|
|
mv libmpv-${_libmpv_hash} deps/libmpv
|
|
}
|
|
|
|
post_install() {
|
|
|
|
# Fix the bizarre locations
|
|
vmkdir usr/lib/stremio
|
|
mv "${DESTDIR}/usr/opt/stremio/stremio" "${DESTDIR}/usr/lib/stremio"
|
|
|
|
# Move .desktop file to proper location
|
|
vmkdir usr/share/applications
|
|
mv "${DESTDIR}/usr/opt/stremio/smartcode-stremio.desktop" "${DESTDIR}/usr/share/applications"
|
|
|
|
# Link executable in PATH
|
|
vmkdir usr/bin
|
|
ln -s /usr/lib/stremio/stremio "${DESTDIR}/usr/bin/stremio"
|
|
|
|
# Symlink node in the instalation directory
|
|
ln -s /usr/bin/node "${DESTDIR}/usr/lib/stremio/node"
|
|
|
|
# Install icon
|
|
vmkdir usr/share/icons
|
|
cp "${wrksrc}/images/stremio_window.png" "${DESTDIR}/usr/share/icons/smartcode-stremio.png"
|
|
|
|
# Copy server
|
|
cp "${XBPS_SRCDISTDIR}/${pkgname}-${version}/server.js" "${DESTDIR}/usr/lib/stremio"
|
|
cp "${XBPS_SRCDISTDIR}/${pkgname}-${version}/stremio.asar" "${DESTDIR}/usr/lib/stremio"
|
|
}
|