xbps-src: added setup_subpkg_tmpl() to setup subpkg tmpls.

This commit is contained in:
Juan RP 2011-07-14 12:30:29 +02:00
parent b688724b27
commit 6058498069

View file

@ -140,6 +140,24 @@ setup_tmpl()
}
setup_subpkg_tmpl()
{
[ -z "$1" ] && return 1
if [ -r "$XBPS_SRCPKGDIR/$1/$1.template" ]; then
setup_tmpl $1
unset run_depends
. $XBPS_SRCPKGDIR/$1/$1.template
for f in ${subpackages}; do
if [ "$subpkg" = "$1" ]; then
pkgname=$subpkg
set_tmpl_common_vars
break
fi
done
fi
}
check_builddep_dup()
{
local dep="$1" i