php: Update from 7.1 RC5 to RC6
[termux-packages] / packages / proot / build.sh
... / ...
CommitLineData
1TERMUX_PKG_HOMEPAGE=http://proot.me/
2TERMUX_PKG_DESCRIPTION="Emulate chroot, bind mount and binfmt_misc for non-root users"
3# Just bump commit and version when needed:
4_COMMIT=6c2b210e3887386a34bcafa154997aa03c291f7f
5TERMUX_PKG_VERSION=5.1.101
6TERMUX_PKG_SRCURL=https://github.com/termux/proot/archive/${_COMMIT}.zip
7TERMUX_PKG_FOLDERNAME=proot-$_COMMIT
8TERMUX_PKG_DEPENDS="libtalloc"
9
10termux_step_pre_configure() {
11 export LD=$CC
12}
13
14termux_step_make_install () {
15 export CROSS_COMPILE=${TERMUX_HOST_PLATFORM}-
16
17 cd $TERMUX_PKG_SRCDIR/src
18 make V=1
19 make install
20
21 mkdir -p $TERMUX_PREFIX/share/man/man1
22 cp $TERMUX_PKG_SRCDIR/doc/proot/man.1 $TERMUX_PREFIX/share/man/man1/proot.1
23
24 cp $TERMUX_PKG_BUILDER_DIR/termux-chroot $TERMUX_PREFIX/bin/
25}