usbmuxd

Details
Source
FROM stagex/pallet-gcc-gnu-busybox AS build
ARG VERSION
COPY --from=stagex/core-openssl . /
COPY --from=stagex/user-libusb . /
COPY --from=stagex/user-libusbmuxd . /
COPY --from=stagex/user-libplist . /
COPY --from=stagex/user-libimobiledevice-glue . /
COPY --from=stagex/user-libimobiledevice . /
ADD fetch/usbmuxd-${VERSION}.tar.bz2 .
ADD libplist-fix-redecs.patch .
WORKDIR /usbmuxd-${VERSION}
RUN --network=none <<-EOF
	set -eux
	patch -p1 < /libplist-fix-redecs.patch
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--without-systemd
	make -j "$(nproc)"
	DESTDIR=/rootfs make install
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /