2024-08-08 07:47:42 +00:00
|
|
|
FROM scratch AS base
|
2024-02-15 15:22:38 +00:00
|
|
|
ENV VERSION=1.16.5
|
2023-12-05 04:34:07 +00:00
|
|
|
ENV SRC_HASH=f01d58cd6d9d77fbdca9eb4bbd5ead1988228fdb73d6f7a201f5f8d6b118b469
|
2024-02-15 15:22:38 +00:00
|
|
|
ENV SRC_FILE=automake-${VERSION}.tar.xz
|
2024-02-09 07:30:28 +00:00
|
|
|
ENV SRC_SITE=https://ftp.gnu.org/gnu/automake/${SRC_FILE}
|
2023-12-16 23:50:40 +00:00
|
|
|
|
2024-08-08 07:47:42 +00:00
|
|
|
FROM base AS fetch
|
2024-02-09 11:23:22 +00:00
|
|
|
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
|
2023-12-16 23:50:40 +00:00
|
|
|
|
2024-08-08 07:47:42 +00:00
|
|
|
FROM fetch AS build
|
2024-02-15 15:22:38 +00:00
|
|
|
COPY --from=stagex/busybox . /
|
|
|
|
COPY --from=stagex/gcc . /
|
|
|
|
COPY --from=stagex/binutils . /
|
|
|
|
COPY --from=stagex/make . /
|
|
|
|
COPY --from=stagex/musl . /
|
|
|
|
COPY --from=stagex/perl . /
|
|
|
|
COPY --from=stagex/m4 . /
|
|
|
|
COPY --from=stagex/autoconf . /
|
|
|
|
RUN tar -xf automake-${VERSION}.tar.xz
|
2024-08-26 01:18:52 +00:00
|
|
|
WORKDIR /automake-${VERSION}
|
2024-04-05 01:56:02 +00:00
|
|
|
ENV SOURCE_DATE_EPOCH=1
|
2024-02-09 07:30:28 +00:00
|
|
|
RUN --network=none <<-EOF
|
|
|
|
set -eux
|
|
|
|
./configure --prefix=/usr
|
2024-03-14 07:16:26 +00:00
|
|
|
make -j "$(nproc)"
|
2024-02-09 07:30:28 +00:00
|
|
|
EOF
|
2023-12-16 23:50:40 +00:00
|
|
|
|
2024-08-08 07:47:42 +00:00
|
|
|
FROM build AS install
|
2024-04-11 20:09:20 +00:00
|
|
|
RUN --network=none make DESTDIR=/rootfs install
|
2023-12-05 04:34:07 +00:00
|
|
|
|
2024-08-08 07:47:42 +00:00
|
|
|
FROM stagex/filesystem AS package
|
2024-03-01 18:30:23 +00:00
|
|
|
COPY --from=install /rootfs/. /
|