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