#!/bin/sh -e

export DESTDIR="$1"

for plugin in libav good bad ugly; do (
    cd "$plugin"

    meson \
        --prefix=/usr \
        -Dtests=disabled \
        -Dexamples=disabled \
        -Dintrospection=disabled \
        -Dqt5=disabled \
        . output

    ninja -C output
    ninja -C output install
) done
