stagex/packages/libxslt/Containerfile

40 lines
1 KiB
Text
Raw Normal View History

2024-08-08 07:47:42 +00:00
FROM scratch AS base
2024-03-10 00:30:48 +00:00
ENV VERSION=1.1.39
ENV SRC_HASH=2a20ad621148339b0759c4d4e96719362dee64c9a096dbba625ba053846349f0
ENV SRC_FILE=libxslt-${VERSION}.tar.xz
ENV SRC_SITE=https://download.gnome.org/sources/libxslt/1.1/${SRC_FILE}
2024-08-08 07:47:42 +00:00
FROM base AS fetch
2024-03-10 00:30:48 +00:00
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
2024-08-08 07:47:42 +00:00
FROM fetch AS build
2024-03-10 00:30:48 +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/pkgconf . /
COPY --from=stagex/libtool . /
COPY --from=stagex/libxml2 . /
COPY --from=stagex/zlib . /
COPY --from=stagex/m4 . /
RUN tar -xf ${SRC_FILE}
2024-08-26 01:18:52 +00:00
WORKDIR /libxslt-${VERSION}
2024-03-10 00:30:48 +00:00
RUN --network=none <<-EOF
set -eux
./configure \
--build=x86_64-unknown-linux-musl \
--host=x86_64-unknown-linux-musl \
--prefix=/usr \
--with-python=no \
--enable-static
make -j "$(nproc)"
2024-03-10 00:30:48 +00:00
EOF
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
2024-03-10 00:30:48 +00:00
2024-08-08 07:47:42 +00:00
FROM stagex/filesystem AS package
2024-03-10 00:30:48 +00:00
COPY --from=install /rootfs/. /