chiark / gitweb /
fixes the config so cpan works on install. (#789)
authorits-pointless <its-pointless@users.noreply.github.com>
Fri, 24 Feb 2017 19:46:47 +0000 (06:46 +1100)
committerFredrik Fornwall <fredrik@fornwall.net>
Fri, 24 Feb 2017 19:46:47 +0000 (20:46 +0100)
* fixes the config so cpan works on install.

* fix so it actually works..

packages/perl/build.sh

index c47f06d138b3d0305eb3e45f9bc539795377a95a..54ea02455cec492301c5ad8fc92e539c8f2e465a 100644 (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
 }