xbps-src/xbps-src-doextract: if build_style declares do_extract(), use it rather than hooks.

This commit is contained in:
Juan RP 2014-07-12 17:39:23 +02:00
parent 6e4b6cecf0
commit 407a882b1a

View file

@ -46,8 +46,19 @@ if declare -f do_extract >/dev/null; then
cd $wrksrc cd $wrksrc
run_func do_extract run_func do_extract
else else
# Run do-extract hooks if [ -n "$build_style" ]; then
run_pkg_hooks "do-extract" if [ ! -r $XBPS_BUILDSTYLEDIR/${build_style}.sh ]; then
msg_error "$pkgver: cannot find build helper $XBPS_BUILDSTYLEDIR/${build_style}.sh!\n"
fi
. $XBPS_BUILDSTYLEDIR/${build_style}.sh
fi
# If the build_style script declares do_extract(), use it rather than hooks.
if declare -f do_extract >/dev/null; then
run_func do_extract
else
# Run do-extract hooks
run_pkg_hooks "do-extract"
fi
fi fi
touch -f $XBPS_EXTRACT_DONE touch -f $XBPS_EXTRACT_DONE