xbps-src: minor cosmetic changes to doinst-helper.

This commit is contained in:
Juan RP 2011-07-18 16:41:56 +02:00
parent 9dc7185e7e
commit 288425875e

View file

@ -36,7 +36,7 @@ fi
set_defvars
for f in $(echo $XBPS_SHUTILSDIR/*.sh); do
for f in $XBPS_SHUTILSDIR/*.sh; do
[ -r "$f" ] && . $f
done
@ -45,7 +45,6 @@ install_src_phase()
local f i subpkg spkgrev
[ -z $pkgname ] && return 2
#
# There's nothing we can do if we are a meta template.
# Just creating the dir is enough to write the package metadata.
@ -69,14 +68,15 @@ install_src_phase()
fi
# Type of installation: custom, make or python.
case "$build_style" in
custom-install) run_func do_install;;
python-module)
if [ "$build_style" = "custom-install" ]; then
run_func do_install
elif [ "$build_style" = "python-module" ]; then
. $XBPS_HELPERSDIR/python-module.sh
run_func do_install
;;
*) run_func make_install;;
esac
else
run_func make_install
fi
cd ${wrksrc} || msg_error "can't change cwd to wrksrc!\n"
msg_normal "$pkgver: install (destdir) phase done.\n"