Added support to build subpackages from a single source.

proplib has been converted to see how it works.

--HG--
extra : convert_revision : dfcd1f547884108d69682e9e62b4aacfa431cc83
This commit is contained in:
Juan RP 2009-02-20 04:10:55 +01:00
parent 8cfe150f54
commit b225a1dc30
12 changed files with 133 additions and 8 deletions

View file

@ -73,6 +73,18 @@ install_src_phase()
touch -f $XBPS_INSTALL_DONE
#
# Build subpackages if found.
#
for subpkg in ${subpackages}; do
msg_normal "Preparing $pkgname subpackage: $pkgname-$subpkg"
. $XBPS_TEMPLATESDIR/$pkgname/$subpkg.template
pkgname=${sourcepkg}-${subpkg}
run_func do_install
run_template ${sourcepkg}
done
[ -n "$subpackages" ] && setup_tmpl ${sourcepkg}
#
# Remove $wrksrc if -C not specified.
#