void-packages/templates/perl-runstuff-before-build.sh
Juan RP f0a7ea4d3c perl: works in the chroot now.
--HG--
extra : convert_revision : d2ec570e3c42559f78715fb180300e7beb17b007
2008-10-24 04:54:40 +02:00

12 lines
364 B
Bash

# This fixes the definitions that the perl binary uses to look at
# prefix and not XBPS_DESTDIR/MASTERDIR.
if [ "$XBPS_DESTDIR" != "/xbps" ]; then
sed -i -e "s|$XBPS_DESTDIR\/$pkgname-$version|/usr|g" $wrksrc/config.h
fi
sed -i -e "s|/usr/usr|/usr|g" $wrksrc/config.h
if [ "$XBPS_MASTERDIR" != "/" ]; then
sed -i -e "s|$XBPS_MASTERDIR||g" $wrksrc/config.h
fi