stagex/packages/automake/Containerfile

33 lines
853 B
Text
Raw Normal View History

2024-02-09 07:30:28 +00:00
FROM scratch as base
ENV VERSION=1.16.5
2023-12-05 04:34:07 +00:00
ENV SRC_HASH=f01d58cd6d9d77fbdca9eb4bbd5ead1988228fdb73d6f7a201f5f8d6b118b469
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
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
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
WORKDIR automake-${VERSION}
ENV SOURCE_DATE_EPOCH=1
2024-02-09 07:30:28 +00:00
RUN --network=none <<-EOF
set -eux
./configure --prefix=/usr
make -j "$(nproc)"
2024-02-09 07:30:28 +00:00
EOF
2023-12-16 23:50:40 +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
FROM stagex/filesystem as package
COPY --from=install /rootfs/. /