diff options
author | Blackflighter | 2023-03-04 10:45:31 +1100 |
---|---|---|
committer | Blackflighter | 2023-03-04 10:45:31 +1100 |
commit | 7c09423597ecc2805eb204015b2ef61c916c7564 (patch) | |
tree | f71352e53c83156ce97c8e9b0c6c86d88e3e3be6 | |
parent | 95b5f4b2466048b0d4e2cf3c3b96e410c0ee1cae (diff) | |
download | aur-7c09423597ecc2805eb204015b2ef61c916c7564.tar.gz |
Added compilation fix patch.
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 6 | ||||
-rw-r--r-- | compile-fix.patch | 12 |
3 files changed, 18 insertions, 3 deletions
@@ -10,7 +10,8 @@ pkgbase = phonon-qt5-mpv depends = phonon-qt5 provides = phonon-qt5-backend source = https://github.com/OpenProgger/phonon-mpv/archive/v0.0.7.tar.gz + source = compile-fix.patch sha256sums = c674e982d81dcdb2cfca3244e55a4c1e5b35cfc4bed3c7bd65921358d8a0ebc6 + sha256sums = df6067fa34b9b84202af5d99ae1a01895d4ae846b2acb1382ff297e704ea7c67 pkgname = phonon-qt5-mpv - @@ -10,10 +10,12 @@ license=(LGPL) depends=(mpv phonon-qt5) provides=(phonon-qt5-backend) makedepends=(extra-cmake-modules) -source=("https://github.com/OpenProgger/phonon-mpv/archive/v$pkgver.tar.gz") -sha256sums=('c674e982d81dcdb2cfca3244e55a4c1e5b35cfc4bed3c7bd65921358d8a0ebc6') +source=("https://github.com/OpenProgger/phonon-mpv/archive/v$pkgver.tar.gz" "compile-fix.patch") +sha256sums=('c674e982d81dcdb2cfca3244e55a4c1e5b35cfc4bed3c7bd65921358d8a0ebc6' + 'df6067fa34b9b84202af5d99ae1a01895d4ae846b2acb1382ff297e704ea7c67') prepare() { + patch --directory="phonon-mpv-$pkgver" --forward --strip=1 --input="${srcdir}/compile-fix.patch" mkdir -p build } diff --git a/compile-fix.patch b/compile-fix.patch new file mode 100644 index 000000000000..c0f4e475c27a --- /dev/null +++ b/compile-fix.patch @@ -0,0 +1,12 @@ +diff --unified --recursive --text package.orig/src/video/videowidget.cpp package.new/src/video/videowidget.cpp +--- package.orig/src/video/videowidget.cpp 2019-09-06 04:53:15.000000000 +1000 ++++ package.new/src/video/videowidget.cpp 2023-03-04 10:30:39.523225066 +1100 +@@ -54,7 +54,7 @@ + } + + void VideoWidget::initializeGL() { +- mpv_opengl_init_params gl_init_params{get_proc_address, nullptr, nullptr}; ++ mpv_opengl_init_params gl_init_params{get_proc_address, QOpenGLContext::currentContext()}; + mpv_render_param display{MPV_RENDER_PARAM_INVALID, nullptr}; + #ifdef X11_SUPPORT + if(QX11Info::isPlatformX11()) { |