xbps-src: added setup_subpkg_tmpl() to setup subpkg tmpls.
This commit is contained in:
parent
b688724b27
commit
6058498069
1 changed files with 18 additions and 0 deletions
|
@ -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()
|
check_builddep_dup()
|
||||||
{
|
{
|
||||||
local dep="$1" i
|
local dep="$1" i
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue