Source
FROM stagex/pallet-gcc-gnu-busybox AS build
ARG VERSION
COPY --from=stagex/user-xtrans . /
COPY --from=stagex/user-libx11 . /
COPY --from=stagex/user-libxext . /
COPY --from=stagex/core-libxslt . /
COPY --from=stagex/user-libxt . /
COPY --from=stagex/user-libxcb . /
COPY --from=stagex/user-libxau . /
COPY --from=stagex/user-libxdmcp . /
COPY --from=stagex/user-libice . /
COPY --from=stagex/user-libsm . /
COPY --from=stagex/user-xorgproto . /
COPY --from=stagex/user-util-linux . /
ADD fetch/libXmu-${VERSION}.tar.xz .
WORKDIR /libXmu-${VERSION}
ENV SOURCE_DATE_EPOCH=1
RUN --network=none <<-EOF
set -eux
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--without-fop
make -j "$(nproc)"
make install DESTDIR=/rootfs
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /