Add 'jellyfin-mpv-shim/' from commit '3db208b9a18e0156ccc80258c36660b3ee0cd611'
git-subtree-dir: jellyfin-mpv-shim git-subtree-mainline:b8dc0ee00e
git-subtree-split:3db208b9a1
This commit is contained in:
26
jellyfin-mpv-shim/.SRCINFO
Normal file
26
jellyfin-mpv-shim/.SRCINFO
Normal file
@@ -0,0 +1,26 @@
|
||||
pkgbase = jellyfin-mpv-shim
|
||||
pkgdesc = Cast media from Jellyfin Mobile and Web apps to MPV
|
||||
pkgver = 2.0.2
|
||||
pkgrel = 1
|
||||
url = https://github.com/jellyfin/jellyfin-mpv-shim
|
||||
install = jellyfin-mpv-shim.install
|
||||
arch = any
|
||||
license = MIT
|
||||
makedepends = python-setuptools
|
||||
makedepends = gettext
|
||||
depends = mpv
|
||||
depends = python>=3.6
|
||||
depends = python-mpv
|
||||
depends = python-mpv-jsonipc>=1.1.9
|
||||
depends = python-jellyfin-apiclient>=1.8.1
|
||||
depends = tk
|
||||
optdepends = python-pystray: systray support
|
||||
optdepends = python-jinja: display mirroring support
|
||||
optdepends = python-pywebview>=3.3.1: display mirroring support
|
||||
optdepends = svp: SmoothVideo Project server
|
||||
optdepends = mpv-shim-default-shaders: default shader pack
|
||||
optdepends = python-pypresence: Discord Rich Presence integration
|
||||
source = jellyfin-mpv-shim-2.0.2.tar.gz::https://github.com/jellyfin/jellyfin-mpv-shim/archive/v2.0.2.tar.gz
|
||||
sha256sums = 38dd5096babe97f87969db70c503be3cefd5af901f1055109a7817b6ee724bed
|
||||
|
||||
pkgname = jellyfin-mpv-shim
|
38
jellyfin-mpv-shim/PKGBUILD
Normal file
38
jellyfin-mpv-shim/PKGBUILD
Normal file
@@ -0,0 +1,38 @@
|
||||
# Maintainer: Marius Lindvall <(firstname) {cat} varden {dog} info>
|
||||
|
||||
pkgname=jellyfin-mpv-shim
|
||||
pkgver='2.0.2'
|
||||
pkgrel=1
|
||||
pkgdesc="Cast media from Jellyfin Mobile and Web apps to MPV"
|
||||
arch=('any')
|
||||
url='https://github.com/jellyfin/jellyfin-mpv-shim'
|
||||
license=('MIT')
|
||||
depends=('mpv' 'python>=3.6' 'python-mpv' 'python-mpv-jsonipc>=1.1.9' 'python-jellyfin-apiclient>=1.8.1' 'tk')
|
||||
makedepends=('python-setuptools' 'gettext')
|
||||
optdepends=('python-pystray: systray support'
|
||||
'python-jinja: display mirroring support'
|
||||
'python-pywebview>=3.3.1: display mirroring support'
|
||||
'svp: SmoothVideo Project server'
|
||||
'mpv-shim-default-shaders: default shader pack'
|
||||
'python-pypresence: Discord Rich Presence integration')
|
||||
source=("$pkgname-$pkgver.tar.gz::https://github.com/jellyfin/jellyfin-mpv-shim/archive/v$pkgver.tar.gz")
|
||||
sha256sums=('38dd5096babe97f87969db70c503be3cefd5af901f1055109a7817b6ee724bed')
|
||||
install="$pkgname.install"
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/jellyfin-mpv-shim-${pkgver}"
|
||||
find -iname '*.po' | while read -r _file
|
||||
do
|
||||
msgfmt "$_file" -o "${_file%.*}.mo"
|
||||
done
|
||||
python setup.py build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/jellyfin-mpv-shim-${pkgver}"
|
||||
install -Dm 644 "LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
|
||||
cd "${pkgdir}"
|
||||
_sitepkg="usr/lib/$(ls usr/lib/ | grep python)/site-packages/jellyfin_mpv_shim"
|
||||
ln -s "/usr/share/mpv-shim-default-shaders" "$_sitepkg/default_shader_pack"
|
||||
}
|
10
jellyfin-mpv-shim/jellyfin-mpv-shim.install
Executable file
10
jellyfin-mpv-shim/jellyfin-mpv-shim.install
Executable file
@@ -0,0 +1,10 @@
|
||||
post_upgrade() {
|
||||
if [ $(vercmp "$2" 1.10.0) -lt 0 ]; then
|
||||
cat << EOF
|
||||
You are upgrading from Jellyfin MPV Shim v1.9 or older. To ensure that the player works properly, please log out and back in the first time you launch Jellyfin MPV Shim after upgrading.
|
||||
For more information, please refer to the release notes:
|
||||
https://github.com/jellyfin/jellyfin-desktop/releases/tag/v1.10.1
|
||||
EOF
|
||||
|
||||
fi
|
||||
}
|
Reference in New Issue
Block a user