perl: replace hardcoded prefix path with variable in build.sh
This commit is contained in:
parent
833d0c6a93
commit
be6b7c30a8
|
@ -76,7 +76,7 @@ termux_step_post_make_install() {
|
||||||
ln -f -s ../lib/perl5/${TERMUX_PKG_VERSION}/${TERMUX_ARCH}-android/CORE perl
|
ln -f -s ../lib/perl5/${TERMUX_PKG_VERSION}/${TERMUX_ARCH}-android/CORE perl
|
||||||
cd ../lib/perl5/${TERMUX_PKG_VERSION}/${TERMUX_ARCH}-android/
|
cd ../lib/perl5/${TERMUX_PKG_VERSION}/${TERMUX_ARCH}-android/
|
||||||
chmod +w Config_heavy.pl
|
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',"--sysroot=$TERMUX_STANDALONE_TOOLCHAIN"/sysroot,"-I${TERMUX_PREFIX}/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
|
sed 's',"$TERMUX_STANDALONE_TOOLCHAIN"/sysroot,"-I${TERMUX_PREFIX%%/usr}",'g' Config_heavy.pl.new > Config_heavy.pl
|
||||||
rm Config_heavy.pl.new
|
rm Config_heavy.pl.new
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue