fmt

Details
Source
FROM stagex/pallet-gcc-cmake-busybox AS build
ARG VERSION
COPY --from=stagex/user-postgresql . /
COPY --from=stagex/user-doxygen . /
ADD fetch/fmt-${VERSION}.tar.gz .
WORKDIR /fmt-${VERSION}
COPY *.patch .
RUN --network=none <<-EOF
	set -eux
	patch -p1 fix-handling-of-static-separator.patch
	# Build in-tree so the prebuilt docs get installed correctly.
	# See https://github.com/fmtlib/fmt/issues/2837
	cmake -B . -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=None \
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	cmake --build .
	DESTDIR=/rootfs cmake --install .
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /