fixes the config so cpan works on install. (#789)

* fixes the config so cpan works on install.

* fix so it actually works..
This commit is contained in:
its-pointless 2017-02-25 06:46:47 +11:00 committed by Fredrik Fornwall
parent 2f00a6d990
commit a7d4cb0351
1 changed files with 6 additions and 1 deletions

View File

@ -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
}