Browse Source
perl: replace hardcoded prefix path with variable in build.sh
emacs-27
Leonid Plyushch
5 years ago
No known key found for this signature in database
GPG Key ID: 45F2964132545795
1 changed files with
2 additions and
2 deletions
-
packages/perl/build.sh
|
|
@ -76,7 +76,7 @@ termux_step_post_make_install() { |
|
|
|
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 |
|
|
|
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${TERMUX_PREFIX%%/usr}",'g' Config_heavy.pl.new > Config_heavy.pl |
|
|
|
rm Config_heavy.pl.new |
|
|
|
} |
|
|
|