diff --git a/templates/perl/template b/templates/perl/template index 3700ecbf37..77cb983250 100644 --- a/templates/perl/template +++ b/templates/perl/template @@ -44,37 +44,3 @@ pre_configure() -Dvendorlib=${p5_base}/vendor_perl/${p5_apiver}" export configure_args="${args}" } - -pre_build() -{ - # 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 -} - -post_install() -{ - # Remove hardcoded paths of XBPS_DESTDIR. - local FILES="Config.pm Config_heavy.pl .packlist" - local opmult="${xbps_machine}-linux-thread-multi" - local thrdir="${DESTDIR}/usr/lib/perl5/${version}/${opmult}" - - for f in ${FILES}; do - sed -i -e "s|$DESTDIR||g" ${thrdir}/${f} - done - for f in $(find $DESTDIR/usr/bin/ -type f -print); do - if $(echo $f|grep -q $DESTDIR); then - sed -i -e "s|$DESTDIR||g" $f - fi - done -}