2024-02-09 07:30:28 +00:00
|
|
|
FROM scratch as base
|
2023-12-05 04:34:07 +00:00
|
|
|
ENV SRC_VERSION=1.16.5
|
|
|
|
ENV SRC_HASH=f01d58cd6d9d77fbdca9eb4bbd5ead1988228fdb73d6f7a201f5f8d6b118b469
|
2024-02-09 07:30:28 +00:00
|
|
|
ENV SRC_FILE=automake-${SRC_VERSION}.tar.xz
|
|
|
|
ENV SRC_SITE=https://ftp.gnu.org/gnu/automake/${SRC_FILE}
|
2023-12-16 23:50:40 +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
|
|
|
|
|
|
|
FROM fetch as build
|
2024-02-09 07:30:28 +00:00
|
|
|
COPY --from=busybox . /
|
|
|
|
COPY --from=gcc . /
|
|
|
|
COPY --from=binutils . /
|
|
|
|
COPY --from=make . /
|
|
|
|
COPY --from=musl . /
|
|
|
|
COPY --from=perl . /
|
|
|
|
COPY --from=m4 . /
|
|
|
|
COPY --from=autoconf . /
|
|
|
|
RUN tar -xf automake-${SRC_VERSION}.tar.xz
|
2023-12-05 04:34:07 +00:00
|
|
|
WORKDIR automake-${SRC_VERSION}
|
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
|
|
|
|
RUN make DESTDIR=/rootfs install
|
2024-02-09 18:19:36 +00:00
|
|
|
RUN find /rootfs -exec touch -hcd "@0" "{}" +
|
2023-12-05 04:34:07 +00:00
|
|
|
|
2023-12-12 17:45:39 +00:00
|
|
|
FROM scratch as package
|
2023-12-16 23:50:40 +00:00
|
|
|
COPY --from=install /rootfs /
|