gettext

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-libxml2 . /
COPY --from=stagex/core-make . /
COPY --from=stagex/core-musl . /
ADD fetch/gettext-${VERSION}.tar.xz .
WORKDIR /gettext-${VERSION}
RUN <<-EOF
	set -eux
	./configure \
		--prefix=/usr \
		--enable-threads=posix \
		--disable-java \
		--enable-static \
		--with-included-libxml=no
	make -j "$(nproc)"
	make DESTDIR=/rootfs install
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /