re2c

Details
Source
FROM scratch AS build
ARG VERSION
COPY --from=stagex/core-autoconf . /
COPY --from=stagex/core-automake . /
COPY --from=stagex/core-binutils . /
COPY --from=stagex/core-busybox . /
COPY --from=stagex/core-libtool . /
COPY --from=stagex/core-perl . /
COPY --from=stagex/core-python . /
COPY --from=stagex/core-gcc . /
COPY --from=stagex/core-make . /
COPY --from=stagex/core-m4 . /
COPY --from=stagex/core-musl . /
ADD fetch/re2c-${VERSION}.tar.gz .
WORKDIR /re2c-${VERSION}
RUN --network=none <<-EOF
	set -eux
	autoreconf -i -W all
	./configure \
		--prefix=/usr
	make -j "$(nproc)"
	make DESTDIR=/rootfs install
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /