Adapt perl to linux.

--HG--
extra : convert_revision : 0195de3a330193ea5caa9426ce893e682017e49c
This commit is contained in:
Juan RP 2008-10-22 18:39:17 +02:00
parent 420f14d2ae
commit 04bd07c1c5
4 changed files with 8 additions and 33 deletions

View file

@ -1,6 +1,7 @@
# This fixes the definitions that the perl binary uses to look at
# XBPS_MASTERDIR and not XBPS_DESTDIR!
# prefix and not XBPS_DESTDIR/MASTERDIR.
$sed_cmd -e "s|$XBPS_DESTDIR\/$pkgname-$version|$XBPS_MASTERDIR|g" \
$wrksrc/config.h > $wrksrc/config.h.in && \
$mv_cmd -f $wrksrc/config.h.in $wrksrc/config.h
$sed_cmd -i \
-e "s|$XBPS_DESTDIR\/$pkgname-$version|/usr|g" \
-e "s|$XBPS_MASTERDIR||g" \
$wrksrc/config.h