--- /dev/null
+#!/bin/sh -e
+
+export DESTDIR="$1"
+
+sed -i \
+ -e 's/win_bison/byacc/g' \
+ -e 's/--version/-V/g' \
+ -e 's/2.4/0/g' \
+ -e 's/-1/-2/g' \
+ gst/parse/meson.build
+
+sed -i 's/yfile, '\''-o'\'', cfile/'\''-o'\'', cfile, yfile/g' \
+ gst/parse/gen_grammar.py.in
+
+meson \
+ --prefix=/usr \
+ --libexecdir=/usr/lib \
+ -Dbuildtype=release \
+ -Ddbghelp=disabled \
+ -Dintrospection=disabled \
+ -Dexamples=disabled \
+ -Dgtk_doc=disabled \
+ . output
+
+ninja -C output
+ninja -C output install