# Template file for 'proot' pkgname=proot version=5.1.0 revision=7 archs="x86_64* i686* aarch64* arm*" build_wrksrc=src build_style=gnu-makefile make_use_env=yes makedepends="libarchive-devel talloc-devel" short_desc="User-space implementation of chroot, mount --bind, and binfmt_misc" maintainer="Piraty " license="GPL-2.0-or-later" homepage="https://proot-me.github.io" distfiles="https://github.com/proot-me/PRoot/archive/v${version}.tar.gz" checksum=ce0a3baca8312613bd10f65bb436a3aaa28e1034f498a22c35ad0693600e01dd if [ "$XBPS_TARGET_LIBC" = "musl" ]; then makedepends+=" musl-legacy-compat" fi pre_build() { # Fix glibc ptrace.h specific constants for musl libc cp ${FILESDIR}/ptrace_compat.h . } do_install() { vbin proot vman ../doc/proot/man.1 proot.1 }