* update mpv to 1:0.39.0-4

This commit is contained in:
Alexander Baldeck 2024-12-12 08:42:08 +01:00
parent b4663f1a9e
commit dccde0582b
3 changed files with 15 additions and 18 deletions

View File

@ -1,7 +1,7 @@
pkgbase = mpv
pkgdesc = a free, open source, and cross-platform media player
pkgver = 0.38.0
pkgrel = 8
pkgver = 0.39.0
pkgrel = 4
epoch = 1
url = https://mpv.io/
arch = x86_64
@ -61,10 +61,10 @@ pkgbase = mpv
optdepends = yt-dlp: for video-sharing websites playback
provides = libmpv.so
options = !emptydirs
source = git+https://github.com/mpv-player/mpv.git#tag=v0.38.0?signed
source = git+https://github.com/mpv-player/mpv.git#tag=v0.39.0?signed
source = dynamically_generate_desktop_file_protocols.patch
validpgpkeys = 145077D82501AA20152CACCE8D769208D5E31419
sha256sums = b37b91d0ae4518594b22338ebe979f13bdc56b6fa26d589e5c3f7b96a31bab3d
sha256sums = 51e787dbff240d69227f306685fc962daae215c755689b9de4ef0432ddf4443b
sha256sums = 88acf97cbc8e0fe745f09bd0bd7f65e0437adcb549dadf3588fd0724d01298e9
depends_x86_64 = luajit
depends_powerpc64le = luajit

View File

@ -6,8 +6,8 @@
pkgname=mpv
epoch=1
pkgver=0.38.0
pkgrel=8.1
pkgver=0.39.0
pkgrel=4
pkgdesc='a free, open source, and cross-platform media player'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
license=('GPL-2.0-or-later AND LGPL-2.1-or-later')
@ -32,20 +32,9 @@ options=('!emptydirs')
validpgpkeys=('145077D82501AA20152CACCE8D769208D5E31419') # sfan5 <sfan5@live.de>
source=("git+https://github.com/mpv-player/mpv.git#tag=v${pkgver}?signed"
"dynamically_generate_desktop_file_protocols.patch")
sha256sums=('b37b91d0ae4518594b22338ebe979f13bdc56b6fa26d589e5c3f7b96a31bab3d'
sha256sums=('51e787dbff240d69227f306685fc962daae215c755689b9de4ef0432ddf4443b'
'88acf97cbc8e0fe745f09bd0bd7f65e0437adcb549dadf3588fd0724d01298e9')
prepare() {
cd "${pkgname}"
# Patch to dynamically generate protocols in the mpv.desktop file
# Taken from https://github.com/mpv-player/mpv/pull/14145
# Fixes:
# - https://github.com/mpv-player/mpv/issues/8731
# - https://github.com/mpv-player/mpv/issues/14124
# - https://gitlab.archlinux.org/archlinux/packaging/packages/mpv/-/issues/10
patch -Np1 < "${srcdir}/dynamically_generate_desktop_file_protocols.patch"
}
build() {
local _meson_options=(
--auto-features auto

8
mpv/README.md Normal file
View File

@ -0,0 +1,8 @@
# mpv
## Rebuild on ffmpeg new release
`mpv` may require a rebuild on `ffmpeg` new releases despite no soname bumps. Indeed, while `ffmpeg` patch releases are usually fine, `mpv` showed a need to be rebuilt even on `ffmpeg` minor releases in the past.
This is due to `ffmpeg` upstream introducing API changes without a soname bump (see [this bug report](https://bugs.kde.org/show_bug.cgi?id=493973) for instance). While this is definitly more of an upstream issue (as in, a soname bump should be introduced to reflect API/ABI changes), it's usually recommended to rebuild `mpv` against new `ffmpeg` (minor / major) releases even if they do not include a soname bump (just out of precaution, to avoid any potential issue).
Note that this is most likely **not** limited to `mpv`, other applications / packages might require the same precaution.