summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorIwan Timmer2017-11-04 12:42:00 +0100
committerIwan Timmer2017-11-04 12:42:00 +0100
commitd73651b60ab1aa7a98c57fb3363094a1632b8e73 (patch)
tree0ad7ee9c041e00aeaf8c43c6ee85b8f1d13bb6a4
parent8ab6ec25167430907c91fbaee27b2e0ee0290073 (diff)
downloadaur-d73651b60ab1aa7a98c57fb3363094a1632b8e73.tar.gz
Provide patch for VDPAU issue
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD11
-rw-r--r--vdpau.patch22
3 files changed, 34 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4e8f0c04b6c..04953440c88 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by mksrcinfo v8
-# Fri Nov 3 22:53:18 UTC 2017
+# Sat Nov 4 11:41:50 UTC 2017
pkgbase = moonlight-embedded
pkgdesc = Gamestream client for embedded devices
pkgver = 2.4.4
@@ -22,7 +22,9 @@ pkgbase = moonlight-embedded
optdepends = aml-libs-c1: ODROID-C1 support
optdepends = libcec: CEC support
source = https://github.com/irtimmer/moonlight-embedded/releases/download/v2.4.4/moonlight-embedded-2.4.4.tar.xz
+ source = vdpau.patch
sha256sums = 548b7d1427e9d8e762f7614f67e9068ffebf2ae5962dc3fd5323500f3570f816
+ sha256sums = 7520ab2c764cb2c7f4ba1e1212cbe3ed7309d2d7a32536f9975e58adda6b5e15
makedepends_armv6h = raspberrypi-firmware-tools
makedepends_armv7h = raspberrypi-firmware-tools
makedepends_armv7h = imx-vpu
diff --git a/PKGBUILD b/PKGBUILD
index ea2a7a52ea6..a3e266e0ab9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,8 +16,15 @@ optdepends=('raspberrypi-firmware-tools: Raspberry Pi support'
'aml-libs-c1: ODROID-C1 support'
'libcec: CEC support')
makedepends=('cmake')
-source=("https://github.com/irtimmer/moonlight-embedded/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz")
-sha256sums=('548b7d1427e9d8e762f7614f67e9068ffebf2ae5962dc3fd5323500f3570f816')
+source=("https://github.com/irtimmer/moonlight-embedded/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz"
+ "vdpau.patch")
+sha256sums=('548b7d1427e9d8e762f7614f67e9068ffebf2ae5962dc3fd5323500f3570f816'
+ '7520ab2c764cb2c7f4ba1e1212cbe3ed7309d2d7a32536f9975e58adda6b5e15')
+
+prepare() {
+ cd moonlight-embedded-$pkgver
+ patch -Np1 -i $srcdir/vdpau.patch
+}
build() {
mkdir -p build
diff --git a/vdpau.patch b/vdpau.patch
new file mode 100644
index 00000000000..ff31046230a
--- /dev/null
+++ b/vdpau.patch
@@ -0,0 +1,22 @@
+From f3219dffa0adc0a5937b4485045294019f4574e6 Mon Sep 17 00:00:00 2001
+From: Iwan Timmer <irtimmer@gmail.com>
+Date: Sat, 4 Nov 2017 12:31:25 +0100
+Subject: [PATCH] Fix compilation error in VDPAU backend
+
+---
+ src/video/ffmpeg_vdpau.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/video/ffmpeg_vdpau.c b/src/video/ffmpeg_vdpau.c
+index 3660e6b..dbdf03d 100644
+--- a/src/video/ffmpeg_vdpau.c
++++ b/src/video/ffmpeg_vdpau.c
+@@ -22,7 +22,7 @@
+
+ #include "ffmpeg_vdpau.h"
+
+-#include <vdpau/vdpau.h>
++#include <vdpau/vdpau_x11.h>
+ #include <libavutil/pixfmt.h>
+ #include <libavutil/imgutils.h>
+ #include <libavcodec/vdpau.h>