glib

Details
Source
FROM stagex/pallet-gcc-meson-busybox AS build
ARG VERSION
COPY --from=stagex/core-perl . /
COPY --from=stagex/core-pcre2 . /
COPY --from=stagex/core-libxslt . /
COPY --from=stagex/core-expat . /
COPY --from=stagex/core-libxml2 . /
COPY --from=stagex/core-libxslt . /
COPY --from=stagex/core-gettext . /
COPY --from=stagex/user-rhash . /
COPY --from=stagex/user-util-linux . /
ADD fetch/glib-${VERSION}.tar.xz .
WORKDIR /glib-${VERSION}
COPY *.patch .
RUN --network=none <<-EOF
	set -eux
	export CFLAGS="-ffat-lto-objects -O2"
	export CXXFLAGS="-O2"
	export CPPFLAGS="-O2"
	meson setup \
		--default-library=shared \
		--prefix=/usr \
		-Dman-pages=disabled \
		-Dlibmount=disabled \
		-Dtests=false \
		-Dintrospection=disabled \
		-Dnls=disabled \
		. output
	meson compile -C output
	meson install --no-rebuild -C output
	DESTDIR=/rootfs meson install --no-rebuild -C output
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /