stagex/packages/autoconf/Containerfile

34 lines
835 B
Text
Raw Normal View History

2024-02-09 07:30:28 +00:00
FROM scratch as base
ENV VERSION=2.71
2024-02-09 07:30:28 +00:00
ENV SRC_HASH=f14c83cfebcc9427f2c3cea7258bd90df972d92eb26752da4ddad81c87a0faa4
ENV SRC_FILE=autoconf-${VERSION}.tar.xz
2024-02-09 07:30:28 +00:00
ENV SRC_SITE=https://ftp.gnu.org/gnu/autoconf/${SRC_FILE}
2023-12-12 17:45:39 +00:00
FROM base as fetch
2024-02-09 07:30:28 +00:00
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
2023-12-12 17:45:39 +00:00
FROM fetch as build
COPY --from=stagex/busybox . /
COPY --from=stagex/gcc . /
COPY --from=stagex/binutils . /
COPY --from=stagex/make . /
COPY --from=stagex/musl . /
COPY --from=stagex/m4 . /
COPY --from=stagex/perl . /
2024-02-10 04:55:36 +00:00
RUN tar -xf ${SRC_FILE}
WORKDIR autoconf-${VERSION}
2023-12-05 04:34:07 +00:00
ENV M4=/usr/bin/m4
2024-02-09 07:30:28 +00:00
RUN --network=none <<-EOF
set -eux
./configure \
--prefix=/usr
make
EOF
2023-12-16 23:50:40 +00:00
from build as install
2024-02-09 07:30:28 +00:00
RUN --network=none make DESTDIR=/rootfs install
RUN find /rootfs -exec touch -hcd "@0" "{}" +
2023-12-05 04:34:07 +00:00
FROM stagex/filesystem as package
COPY --from=install /rootfs/. /