upgpkg: jellyfin-mpv-shim 2.6.0-2
switch to PEP517 building
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
pkgbase = jellyfin-mpv-shim
|
||||
pkgdesc = Cast media from Jellyfin Mobile and Web apps to MPV
|
||||
pkgver = 2.6.0
|
||||
pkgrel = 1
|
||||
pkgrel = 2
|
||||
url = https://github.com/jellyfin/jellyfin-mpv-shim
|
||||
arch = any
|
||||
license = MIT
|
||||
makedepends = python-setuptools
|
||||
makedepends = python-build
|
||||
makedepends = python-installer
|
||||
makedepends = python-wheel
|
||||
makedepends = gettext
|
||||
makedepends = python-setuptools
|
||||
depends = mpv
|
||||
depends = python>=3.6
|
||||
depends = python-mpv
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
|
||||
pkgname=jellyfin-mpv-shim
|
||||
pkgver=2.6.0
|
||||
pkgrel=1
|
||||
pkgdesc="Cast media from Jellyfin Mobile and Web apps to MPV"
|
||||
pkgrel=2
|
||||
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)
|
||||
makedepends=(python-build python-installer python-wheel gettext python-setuptools)
|
||||
optdepends=(
|
||||
'python-pystray: systray support'
|
||||
'python-jinja: display mirroring support'
|
||||
@@ -18,31 +18,35 @@ optdepends=(
|
||||
'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")
|
||||
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
|
||||
b2sums=('13c6623b4a83f1c596034b14a3cef1d8c0bd7651024c3c9fcba4fdde332f6b350e34fa18d4de075953e46ac2ec33624bcfa0c43b8887c21d14de682d04830a07')
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/jellyfin-mpv-shim-${pkgver}"
|
||||
cd jellyfin-mpv-shim-$pkgver
|
||||
|
||||
find -iname '*.po' | while read -r _file; do
|
||||
msgfmt "$_file" -o "${_file%.*}.mo"
|
||||
done
|
||||
python setup.py build
|
||||
|
||||
python -m build --wheel --no-isolation
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/jellyfin-mpv-shim-${pkgver}"
|
||||
install -Dm644 "LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
|
||||
cd jellyfin-mpv-shim-$pkgver
|
||||
|
||||
install -Dm644 "LICENSE.md" "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
||||
|
||||
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||
|
||||
for i in 16 32 48 64 128 256; do
|
||||
install -Dvm644 jellyfin_mpv_shim/integration/jellyfin-$i.png "$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/com.github.iwalton3.jellyfin-mpv-shim.png"
|
||||
install -Dvm644 jellyfin_mpv_shim/integration/jellyfin-$i.png "$pkgdir"/usr/share/icons/hicolor/${i}x${i}/apps/com.github.iwalton3.jellyfin-mpv-shim.png
|
||||
done
|
||||
|
||||
install -Dm644 jellyfin_mpv_shim/integration/com.github.iwalton3.jellyfin-mpv-shim.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
|
||||
install -Dm644 jellyfin_mpv_shim/integration/com.github.iwalton3.jellyfin-mpv-shim.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
|
||||
|
||||
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"
|
||||
cd "$pkgdir"
|
||||
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
|
||||
ln -s "/usr/share/mpv-shim-default-shaders" "${site_packages:1}/jellyfin_mpv_shim/default_shader_pack"
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
||||
|
||||
Reference in New Issue
Block a user