Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/gstreamer
diff options
context:
space:
mode:
Diffstat (limited to 'extra/gstreamer')
-rw-r--r--extra/gstreamer/PKGBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/extra/gstreamer/PKGBUILD b/extra/gstreamer/PKGBUILD
new file mode 100644
index 00000000..a28b9fea
--- /dev/null
+++ b/extra/gstreamer/PKGBUILD
@@ -0,0 +1,46 @@
+# svt-hevc is blacklisted
+makedepends=(${makedepends[@]//svt-hevc/})
+
+eval "$(
+ declare -f build | \
+ sed '
+ s/arch-meson/arch-meson -D svthevcenc=disabled /g
+ '
+)"
+
+eval "$(
+ declare -f package_gst-plugins-bad-libs | \
+ sed '
+ s/svthevcenc//g
+ '
+)"
+
+eval "$(
+ declare -f package_gst-plugins-bad | \
+ sed '
+ s/svt-hevc//g
+ '
+)"
+
+# no opencv on i486 for now
+if [ "$CARCH" = 'i486' ]; then
+ makedepends=(${makedepends[@]//opencv/})
+ eval "$(
+ declare -f build | \
+ sed '
+ s@arch-meson @arch-meson -D opencv=disabled @
+ '
+ declare -f package_gst-plugins-bad-libs | \
+ sed '
+ /mkdir.*opencv/d
+ /mv.*opencv/d
+ /gst\/opencv/d
+ s/in opencv wpe/in wpe/
+ '
+ declare -f package_gst-plugin-opencv | \
+ sed '
+ 3 i if false; then
+ $ i fi
+ '
+ )"
+fi