argp-standalone
Source
FROM scratch AS build
ARG VERSION
COPY --from=stagex/core-busybox . /
COPY --from=stagex/core-llvm . /
COPY --from=stagex/core-mold . /
COPY --from=stagex/core-onetbb . /
COPY --from=stagex/core-zlib . /
COPY --from=stagex/core-libzstd . /
COPY --from=stagex/core-make . /
COPY --from=stagex/core-musl . /
COPY --from=stagex/core-perl . /
COPY --from=stagex/core-autoconf . /
COPY --from=stagex/core-automake . /
COPY --from=stagex/core-m4 . /
ADD fetch/argp-standalone-${VERSION}.tar.gz .
WORKDIR /argp-standalone-${VERSION}
RUN --network=none <<-EOF
set -eux
/usr/bin/autoreconf -vif
CFLAGS="-fPIC" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var
make -j "$(nproc)"
install -vDm644 -t /rootfs/usr/include argp.h
install -vDm755 -t /rootfs/usr/lib libargp.a
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /Copied to clipboard!