1#!/bin/bash 2 3set -ex 4 5mkdir -p /epoxy 6pushd /epoxy 7wget -qO- https://github.com/anholt/libepoxy/releases/download/1.5.4/libepoxy-1.5.4.tar.xz | tar -xJ --strip-components=1 8meson build/ $EXTRA_MESON_ARGS 9ninja -C build install 10popd 11rm -rf /epoxy 12 13VIRGLRENDERER_VERSION=43148d1115a12219a0560a538c9872d07c28c558 14git clone https://gitlab.freedesktop.org/virgl/virglrenderer.git --single-branch --no-checkout /virglrenderer 15pushd /virglrenderer 16git checkout "$VIRGLRENDERER_VERSION" 17meson build/ $EXTRA_MESON_ARGS 18ninja -C build install 19popd 20rm -rf /virglrenderer 21