Update build.sh

This commit is contained in:
Stephen 2017-11-30 10:03:54 -08:00 committed by Henrik Grimler
parent 80526ff808
commit 9e0062d832

View File

@ -71,6 +71,11 @@ TERMUX_PKG_INCLUDE_IN_DEVPACKAGE="share/apache2/build"
TERMUX_PKG_EXTRA_MAKE_ARGS="-s"
termux_step_pre_configure () {
# address interpreter issues
sed -i 's/\/home\/fornwall\/.termux-build\/apr\/tmp\/libtool/\/usr\/bin\/libtool/' ${TERMUX_PREFIX}/bin/apr-1-config
sed -i 's/\/data\/data\/com.termux\/files\/usr\/bin\/bash/\/bin\/bash/' ${TERMUX_PREFIX}/share/apr-1/build/libtool
sed -i 's/\/home\/fornwall/\/home\/builder/' ${TERMUX_PREFIX}/share/apr-1/build/libtool
# remove old files
rm -rf "$TERMUX_PREFIX"/{libexec,share,etc}/apache2
rm -rf "$TERMUX_PREFIX"/lib/cgi-bin