void-packages/srcpkgs/proot/template

27 lines
735 B
Text
Raw Normal View History

2013-04-04 15:09:18 +00:00
# Template file for 'proot'
pkgname=proot
2015-01-19 08:45:05 +00:00
version=5.1.0
2013-04-04 15:09:18 +00:00
revision=1
2015-01-19 08:45:05 +00:00
wrksrc="PRoot-${version}"
makedepends="libarchive-devel talloc-devel"
2013-04-04 15:09:18 +00:00
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"
2014-06-06 09:20:48 +00:00
distfiles="https://github.com/cedric-vincent/PRoot/archive/v${version}.tar.gz"
2015-01-19 08:45:05 +00:00
checksum=50fcb882662b2de3e64e603b68d1af75e920d480191a49e11c0cb63d50040386
2013-04-04 15:09:18 +00:00
2014-11-24 10:18:43 +00:00
pre_build() {
2015-01-19 08:45:05 +00:00
sed -i "s,strip,:,g" src/GNUmakefile
2014-11-24 10:18:43 +00:00
sed -i "s,objcopy,${OBJCOPY},g" src/GNUmakefile
sed -i "s,objdump,${OBJDUMP},g" src/GNUmakefile
}
2013-04-04 15:09:18 +00:00
do_build() {
cd src
2013-05-15 07:09:16 +00:00
make CC=$CC CFLAGS="$CFLAGS" ${makejobs}
2013-04-04 15:09:18 +00:00
}
do_install() {
2014-11-24 10:18:43 +00:00
vbin src/proot
vman doc/proot/man.1 proot.1
2013-04-04 15:09:18 +00:00
}