# Template file for 'proot'
pkgname=proot
version=3.2.2
revision=1
short_desc="User-space implementation of chroot, mount --bind, and binfmt_misc"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://proot.me"
distfiles="https://github.com/cedric-vincent/PRoot/archive/v${version}.tar.gz"
checksum="481296465027c48de8b8779c4cdad57948c765139f2a17b25590068b8d21a111"
makedepends="talloc-devel"
wrksrc="PRoot-${version}"

do_build() {
	cd src
	make CC=$CC CFLAGS="$CFLAGS" ${makejobs}
}

do_install() {
	vinstall src/proot 755 usr/bin
	vinstall doc/proot.1 644 usr/share/man/man1
}
