2989404d2c
e47f53ceec502c2875b6c0b3b22601cfaa44ff9e12539a08a1359ecaead7f50e autoconf
32 lines
804 B
Docker
32 lines
804 B
Docker
FROM scratch AS base
|
|
ENV VERSION=2.72
|
|
ENV SRC_HASH=ba885c1319578d6c94d46e9b0dceb4014caafe2490e437a0dbca3f270a223f5a
|
|
ENV SRC_FILE=autoconf-${VERSION}.tar.xz
|
|
ENV SRC_SITE=https://ftp.gnu.org/gnu/autoconf/${SRC_FILE}
|
|
|
|
FROM base AS fetch
|
|
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
|
|
|
|
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 . /
|
|
RUN tar -xf ${SRC_FILE}
|
|
WORKDIR /autoconf-${VERSION}
|
|
ENV M4=/usr/bin/m4
|
|
RUN --network=none <<-EOF
|
|
set -eux
|
|
./configure \
|
|
--prefix=/usr
|
|
make -j "$(nproc)"
|
|
EOF
|
|
|
|
FROM build AS install
|
|
RUN --network=none make DESTDIR=/rootfs install
|
|
|
|
FROM stagex/filesystem AS package
|
|
COPY --from=install /rootfs/. /
|