44 lines
1.1 KiB
Text
44 lines
1.1 KiB
Text
|
FROM scratch as base
|
||
|
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}
|
||
|
|
||
|
FROM base as fetch
|
||
|
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
|
||
|
|
||
|
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/pkgconf . /
|
||
|
COPY --from=stagex/libtool . /
|
||
|
COPY --from=stagex/libxml2 . /
|
||
|
COPY --from=stagex/zlib . /
|
||
|
COPY --from=stagex/m4 . /
|
||
|
RUN tar -xf ${SRC_FILE}
|
||
|
WORKDIR libxslt-${VERSION}
|
||
|
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
|
||
|
EOF
|
||
|
|
||
|
FROM build as install
|
||
|
RUN --network=none <<-EOF
|
||
|
set -eux
|
||
|
make DESTDIR=/rootfs install
|
||
|
find /rootfs -exec touch -hcd "@0" "{}" +
|
||
|
EOF
|
||
|
|
||
|
FROM stagex/filesystem as package
|
||
|
COPY --from=install /rootfs/. /
|