Update to v2.0.0

This commit is contained in:
Marius Lindvall
2021-04-20 08:48:58 +02:00
parent f021df0c87
commit dda46f903a
2 changed files with 12 additions and 19 deletions

View File

@@ -1,8 +1,8 @@
pkgbase = jellyfin-mpv-shim
pkgdesc = Cast media from Jellyfin Mobile and Web apps to MPV
pkgver = 1.10.4
pkgver = 2.0.0
pkgrel = 1
url = https://github.com/jellyfin/jellyfin-desktop
url = https://github.com/jellyfin/jellyfin-mpv-shim
install = jellyfin-mpv-shim.install
arch = any
license = MIT
@@ -17,15 +17,12 @@ pkgbase = jellyfin-mpv-shim
depends = tk
optdepends = python-pystray: systray support
optdepends = python-jinja: display mirroring support
optdepends = python-pywebview>=3.3.1: desktop client and display mirroring support
optdepends = python-werkzeug: desktop client support
optdepends = python-flask: desktop client support
optdepends = jellyfin-mpv-shim-web: desktop client 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-1.10.4.tar.gz::https://github.com/jellyfin/jellyfin-desktop/archive/v1.10.4.tar.gz
sha256sums = 75be72ee6cada7c48534c69b052388355f3bbc6334d0bf7a2bd0aa5a7ce511bb
source = jellyfin-mpv-shim-2.0.0.tar.gz::https://github.com/jellyfin/jellyfin-mpv-shim/archive/v2.0.0.tar.gz
sha256sums = f9adf44c4ea0fa0eae1ffc07753cf047c99cfbbf7d89d9943aa46ac43470fe58
pkgname = jellyfin-mpv-shim

View File

@@ -1,29 +1,26 @@
# Maintainer: Marius Lindvall <(firstname) {cat} varden {dog} info>
pkgname=jellyfin-mpv-shim
pkgver='1.10.4'
pkgver='2.0.0'
pkgrel=1
pkgdesc="Cast media from Jellyfin Mobile and Web apps to MPV"
arch=('any')
url='https://github.com/jellyfin/jellyfin-desktop'
url='https://github.com/jellyfin/jellyfin-mpv-shim'
license=('MIT')
depends=('mpv' 'python>=3.6' 'python-pydantic' 'python-mpv' 'python-mpv-jsonipc>=1.1.9' 'python-jellyfin-apiclient>=1.7.2' 'tk')
makedepends=('python-setuptools' 'gettext')
optdepends=('python-pystray: systray support'
'python-jinja: display mirroring support'
'python-pywebview>=3.3.1: desktop client and display mirroring support'
'python-werkzeug: desktop client support'
'python-flask: desktop client support'
'jellyfin-mpv-shim-web: desktop client 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-desktop/archive/v$pkgver.tar.gz")
sha256sums=('75be72ee6cada7c48534c69b052388355f3bbc6334d0bf7a2bd0aa5a7ce511bb')
source=("$pkgname-$pkgver.tar.gz::https://github.com/jellyfin/jellyfin-mpv-shim/archive/v$pkgver.tar.gz")
sha256sums=('f9adf44c4ea0fa0eae1ffc07753cf047c99cfbbf7d89d9943aa46ac43470fe58')
install="$pkgname.install"
build() {
cd "${srcdir}/jellyfin-desktop-${pkgver}"
cd "${srcdir}/jellyfin-mpv-shim-${pkgver}"
find -iname '*.po' | while read -r _file
do
msgfmt "$_file" -o "${_file%.*}.mo"
@@ -32,11 +29,10 @@ build() {
}
package() {
cd "${srcdir}/jellyfin-desktop-${pkgver}"
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"
ln -s "/usr/lib/jellyfin-mpv-shim/jellyfin-web" "$_sitepkg/webclient_view/webclient"
}