2008-10-02 01:38:12 +02:00
|
|
|
# This fixes the definitions that the perl binary uses to look at
|
2008-10-22 18:39:17 +02:00
|
|
|
# prefix and not XBPS_DESTDIR/MASTERDIR.
|
2008-10-02 01:38:12 +02:00
|
|
|
|
2008-10-24 04:54:40 +02:00
|
|
|
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
|