chiark / gitweb /
vim: Update to latest patch
[termux-packages] / packages / proot / build.sh
1 TERMUX_PKG_HOMEPAGE=http://proot.me/
2 TERMUX_PKG_DESCRIPTION="Emulate chroot, bind mount and binfmt_misc for non-root users"
3 TERMUX_PKG_VERSION=5.1.100
4 TERMUX_PKG_SRCURL=https://github.com/proot-me/PRoot/archive/next.zip
5 TERMUX_PKG_FOLDERNAME=PRoot-next
6 TERMUX_PKG_DEPENDS="libtalloc"
7
8 export LD=$CC
9
10 termux_step_make_install () {
11         export CROSS_COMPILE=${TERMUX_HOST_PLATFORM}-
12
13         cd $TERMUX_PKG_SRCDIR/src
14         make V=1
15         make install
16
17         mkdir -p $TERMUX_PREFIX/share/man/man1
18         cp $TERMUX_PKG_SRCDIR/doc/proot/man.1 $TERMUX_PREFIX/share/man/man1/proot.1
19
20         cp $TERMUX_PKG_BUILDER_DIR/termux-chroot $TERMUX_PREFIX/bin/
21 }