xbps-src: added setup_subpkg_tmpl() to setup subpkg tmpls.
This commit is contained in:
parent
b688724b27
commit
6058498069
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user