From: its-pointless Date: Fri, 24 Feb 2017 19:46:47 +0000 (+1100) Subject: fixes the config so cpan works on install. (#789) X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/commitdiff_plain/a7d4cb0351d29f4385e68e0928f4281e32678600?hp=2f00a6d99029c1820a4419ce42413055be694a3c fixes the config so cpan works on install. (#789) * fixes the config so cpan works on install. * fix so it actually works.. --- diff --git a/packages/perl/build.sh b/packages/perl/build.sh index c47f06d1..54ea0245 100644 --- a/packages/perl/build.sh +++ b/packages/perl/build.sh @@ -9,7 +9,7 @@ TERMUX_MAKE_PROCESSES=1 TERMUX_PKG_RM_AFTER_INSTALL="bin/perl${TERMUX_PKG_VERSION}" TERMUX_PKG_BUILD_IN_SRC="yes" TERMUX_PKG_NO_DEVELSPLIT=yes - +TERMUX_PKG_REVISION=1 termux_step_post_extract_package () { # This port uses perl-cross: http://arsv.github.io/perl-cross/ local PERLCROSS_VERSION=1.1.3 @@ -77,4 +77,9 @@ termux_step_post_make_install () { cd $TERMUX_PREFIX/include ln -f -s ../lib/perl5/${TERMUX_PKG_VERSION}/${TERMUX_ARCH}-android/CORE perl + cd ../lib/perl5/${TERMUX_PKG_VERSION}/${TERMUX_ARCH}-android/ + chmod +w Config_heavy.pl + sed 's',"--sysroot=$TERMUX_STANDALONE_TOOLCHAIN"/sysroot,"-I/data/data/com.termux/files/usr/include",'g' Config_heavy.pl > Config_heavy.pl.new + sed 's',"$TERMUX_STANDALONE_TOOLCHAIN"/sysroot,"-I/data/data/com.termux/files",'g' Config_heavy.pl.new > Config_heavy.pl + rm Config_heavy.pl.new }