Source
FROM stagex/pallet-gcc-meson-busybox AS build
ARG VERSION
COPY --from=stagex/user-libx11 . /
COPY --from=stagex/user-xorgproto . /
COPY --from=stagex/user-libxcb . /
COPY --from=stagex/user-libxdmcp . /
COPY --from=stagex/user-libxau . /
COPY --from=stagex/core-libxml2 . /
COPY --from=stagex/core-expat . /
COPY --from=stagex/user-libxfixes . /
COPY --from=stagex/user-libxext . /
COPY --from=stagex/user-libdrm . /
COPY --from=stagex/user-wayland . /
ADD fetch/${VERSION}.tar.gz .
WORKDIR /libva-${VERSION}
RUN --network=none <<-EOF
set -eux
meson setup \
--prefix=/usr \
-Db_lto=true \
-Dwith_x11=yes \
-Dwith_glx=no \
-Dwith_wayland=yes \
-Dwith_win32=no \
. output
meson compile -C output
DESTDIR=/rootfs meson install --no-rebuild -C output
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /