stagex/packages/gettext/Containerfile

35 lines
871 B
Text
Raw Normal View History

2024-08-08 07:47:42 +00:00
FROM scratch AS base
2024-02-11 01:51:48 +00:00
ENV VERSION=0.21
ENV SRC_HASH=d20fcbb537e02dcf1383197ba05bd0734ef7bf5db06bdb241eb69b7d16b73192
ENV SRC_FILE=gettext-${VERSION}.tar.xz
ENV SRC_SITE=https://mirrors.kernel.org/gnu/gettext/${SRC_FILE}
2024-02-02 21:38:33 +00:00
2024-08-08 07:47:42 +00:00
FROM base AS fetch
2024-02-10 05:05:34 +00:00
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
2024-02-02 21:38:33 +00:00
2024-08-08 07:47:42 +00:00
FROM fetch AS build
COPY --from=stagex/busybox . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/libxml2 . /
COPY --from=stagex/make . /
COPY --from=stagex/musl . /
2024-02-02 21:38:33 +00:00
RUN tar -xf ${SRC_FILE}
2024-08-26 01:18:52 +00:00
WORKDIR /gettext-${VERSION}
2024-02-09 07:30:28 +00:00
RUN <<-EOF
set -eux
./configure \
2024-02-11 01:51:48 +00:00
--prefix=/usr \
--enable-threads=posix \
--disable-java \
--enable-static \
--with-included-libxml=no
make -j "$(nproc)"
2024-02-09 07:30:28 +00:00
EOF
2024-02-02 21:38:33 +00:00
2024-08-08 07:50:50 +00:00
FROM build AS install
2024-04-11 20:09:20 +00:00
RUN --network=none make DESTDIR=/rootfs install
2024-02-02 21:38:33 +00:00
2024-08-08 07:47:42 +00:00
FROM stagex/filesystem AS package
COPY --from=install /rootfs/. /