perl: remove references to cross toolchain.

This commit is contained in:
Christian Neukirchen 2014-08-28 15:11:11 +02:00
parent 24ee4f5557
commit 2e687358ce

View file

@ -1,7 +1,7 @@
# Template build file for 'perl'.
pkgname=perl
version=5.18.2
revision=3
revision=4
hostmakedepends="which less"
makedepends="zlib-devel bzip2-devel gdbm-devel db-devel>=5.3"
short_desc="Practical Extraction and Report Language"
@ -226,6 +226,11 @@ do_install() {
${DESTDIR}/usr/lib/perl5/core_perl/auto/
find ${DESTDIR} -name .exists |xargs rm -f
rm -rf ${DESTDIR}/usr/share/perl5/core_perl/$XBPS_CROSS_TRIPLET
# Remove references to cross toolchain.
sed -i "s/$XBPS_CROSS_TRIPLET-//g" \
${DESTDIR}/usr/lib/perl5/core_perl/Config_heavy.pl \
${DESTDIR}/usr/lib/perl5/core_perl/Config.pm
else
make DESTDIR=${DESTDIR} install
fi