po4a

Details
Source
FROM scratch AS build
ARG VERSION
COPY --from=stagex/core-busybox . /
COPY --from=stagex/core-gcc . /
COPY --from=stagex/core-binutils . /
COPY --from=stagex/core-make . /
COPY --from=stagex/core-musl . /
COPY --from=stagex/core-perl . /
COPY --from=stagex/core-perl-module-build . /
COPY --from=stagex/core-perl-pod-parser . /
COPY --from=stagex/core-diffutils . /
COPY --from=stagex/core-gettext . /
COPY --from=stagex/core-libxml2 . /
COPY --from=stagex/core-libxslt . /
COPY --from=stagex/core-docbook-xml . /
COPY --from=stagex/core-docbook-xsl . /
COPY --from=stagex/core-zlib . /
COPY --from=stagex/core-m4 . /
COPY --from=stagex/core-autoconf . /
COPY --from=stagex/core-pkgconf . /
ADD fetch/po4a-${VERSION}.tar.gz .
WORKDIR /po4a-${VERSION}
ENV SOURCE_DATE_EPOCH=1
RUN --network=none <<-EOF
	set -eux
	perl Build.PL \
		--installdirs=vendor \
		--create_packlist=0
	LC_ALL=en_US.UTF-8 perl Build
	./Build install --destdir="/rootfs"
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /