2024-08-08 07:47:42 +00:00
|
|
|
FROM scratch AS base
|
2024-07-31 06:38:29 +00:00
|
|
|
ENV VERSION=0.73
|
|
|
|
ENV SRC_HASH=ad5edc38bf004807843622fddbf67bd5ac604fc16e14c2bfefa7b07718ad21f3
|
|
|
|
ENV SRC_FILE=v${VERSION}.tar.gz
|
|
|
|
ENV SRC_SITE=https://github.com/mquinson/po4a/archive/refs/tags/${SRC_FILE}
|
2024-08-12 21:24:46 +00:00
|
|
|
ENV SOURCE_DATE_EPOCH=1
|
2024-07-31 06:38:29 +00:00
|
|
|
|
2024-08-08 07:47:42 +00:00
|
|
|
FROM base AS fetch
|
2024-07-31 06:38:29 +00:00
|
|
|
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
|
|
|
|
|
2024-08-08 07:47:42 +00:00
|
|
|
FROM fetch AS build
|
2024-07-31 06:38:29 +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/perl-module-build . /
|
|
|
|
COPY --from=stagex/perl-pod-parser . /
|
|
|
|
COPY --from=stagex/diffutils . /
|
|
|
|
COPY --from=stagex/gettext . /
|
|
|
|
COPY --from=stagex/libxml2 . /
|
|
|
|
COPY --from=stagex/libxslt . /
|
|
|
|
COPY --from=stagex/docbook-xml . /
|
|
|
|
COPY --from=stagex/docbook-xsl . /
|
|
|
|
COPY --from=stagex/zlib . /
|
|
|
|
COPY --from=stagex/m4 . /
|
|
|
|
COPY --from=stagex/autoconf . /
|
|
|
|
COPY --from=stagex/pkgconf . /
|
|
|
|
RUN tar -xf ${SRC_FILE}
|
2024-08-26 01:18:52 +00:00
|
|
|
WORKDIR /po4a-${VERSION}
|
2024-07-31 06:38:29 +00:00
|
|
|
RUN --network=none <<-EOF
|
|
|
|
set -eux
|
|
|
|
perl Build.PL \
|
|
|
|
--installdirs=vendor \
|
|
|
|
--create_packlist=0
|
|
|
|
LC_ALL=en_US.UTF-8 perl Build
|
|
|
|
EOF
|
|
|
|
|
2024-08-08 07:47:42 +00:00
|
|
|
FROM build AS install
|
2024-07-31 06:38:29 +00:00
|
|
|
RUN --network=none ./Build install --destdir="/rootfs"
|
|
|
|
|
2024-08-08 07:47:42 +00:00
|
|
|
FROM stagex/filesystem AS package
|
2024-07-31 06:38:29 +00:00
|
|
|
COPY --from=install /rootfs/. /
|