2008-10-13 07:32:05 +02:00
|
|
|
# Fixup Config.pm to look at XBPS_MASTERDIR, this helps modules
|
2008-10-02 01:38:12 +02:00
|
|
|
# to use correct dirs while building/installing them.
|
|
|
|
|
|
|
|
perl_arch=$(uname -m)
|
2008-10-13 07:32:05 +02:00
|
|
|
perl_libdir=$XBPS_DESTDIR/$pkgname-$version/lib/perl5
|
2008-10-20 16:34:27 +02:00
|
|
|
config_pm=$perl_libdir/$version/$perl_arch-linux-thread-multi/Config.pm
|
2008-10-02 01:38:12 +02:00
|
|
|
|
2008-10-13 07:32:05 +02:00
|
|
|
$sed_cmd -e "s|$XBPS_DESTDIR\/$pkgname-$version|$XBPS_MASTERDIR|g" \
|
2008-10-02 01:38:12 +02:00
|
|
|
$config_pm > $config_pm.in
|
|
|
|
$chmod_cmd 444 $config_pm.in
|
|
|
|
$mv_cmd -f $config_pm.in $config_pm
|