62 lines
2.4 KiB
Bash
62 lines
2.4 KiB
Bash
# Template file for 'stremio-shell'
|
|
pkgname=stremio-shell
|
|
version=4.4.142
|
|
revision=3
|
|
_singleapplication_hash=4aeac8fa3e7e96385ba556346ebb6020e35ffdd8
|
|
_libmpv_hash=822a41a1087daf2911fc336fbd9509f962158fef
|
|
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="3ffb70522f5f1f77516cd01ab27550a69f79d7256e492f6afec84e827067efab
|
|
b5066c6dab3a35459a01b839e3e1c3b1d6d1cb70e83bd245110cd1c86476aa32
|
|
e0545772ca819236926eb118c2f211f05e01f510c1c1a89758895919ed5718d4
|
|
618783dd211b2e03501c63f9008f56887514eb12e44de140a9822e5ac22c612b
|
|
8bdde1e95f75592001930e9b263d7ef6b9cdcacecc4635c53285af026f2b1f8c"
|
|
skip_extraction="server.js stremio.asar"
|
|
|
|
post_extract() {
|
|
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"
|
|
}
|