void-packages/templates/perl-runstuff-after-install.sh
Juan RP 99d5350b30 Major changes to not depend on cksum and db from NetBSD.
Two new utilities in C have been created:
	- xbps-digest: shows the SHA256 hash for a file.
	- xbps-pkgdb: handles dependency stuff via proplib.

Templates should use now $build_depends and change $checksum to be
a SHA256 hash. That means that I'm currently using xbps on Linux and
I lost interest on NetBSD, perhaps I'll add support for it in the
future.

Only git and its dependencies have been converted, as well as vim.

--HG--
extra : convert_revision : 53a7e030ca6b6d02bb6cd3e51d42b7d5702c1b57
2008-10-20 16:34:27 +02:00

12 lines
430 B
Bash

# Fixup Config.pm to look at XBPS_MASTERDIR, this helps modules
# to use correct dirs while building/installing them.
perl_arch=$(uname -m)
perl_libdir=$XBPS_DESTDIR/$pkgname-$version/lib/perl5
config_pm=$perl_libdir/$version/$perl_arch-linux-thread-multi/Config.pm
$sed_cmd -e "s|$XBPS_DESTDIR\/$pkgname-$version|$XBPS_MASTERDIR|g" \
$config_pm > $config_pm.in
$chmod_cmd 444 $config_pm.in
$mv_cmd -f $config_pm.in $config_pm