# Template file for 'proot' pkgname=proot version=5.0.0 revision=1 short_desc="User-space implementation of chroot, mount --bind, and binfmt_misc" maintainer="Juan RP " license="GPL-2" homepage="http://proot.me" distfiles="https://github.com/cedric-vincent/PRoot/archive/v${version}.tar.gz" checksum=e3f4f38132416e0306fe8e7e225f037e1630665231c65a659969f7c0555483a7 makedepends="libarchive-devel talloc-devel" wrksrc="PRoot-${version}" pre_build() { sed -i "s,strip,${STRIP},g" src/GNUmakefile sed -i "s,objcopy,${OBJCOPY},g" src/GNUmakefile sed -i "s,objdump,${OBJDUMP},g" src/GNUmakefile } do_build() { cd src make CC=$CC CFLAGS="$CFLAGS" ${makejobs} } do_install() { vbin src/proot vman doc/proot/man.1 proot.1 }