Set sourcepkg to pkgname through run_template().

This removes the need for having to specify sourcepkg manually in
every package that will build subpkgs.

--HG--
extra : convert_revision : 383e4c467e84844d2f4f61ae5c5e07a5124e9cfb
This commit is contained in:
Juan RP 2009-07-29 22:44:30 +02:00
parent d3c1892c6d
commit dd6b45c322
160 changed files with 5 additions and 162 deletions

View file

@ -205,6 +205,9 @@ set_tmpl_common_vars()
FILESDIR=${XBPS_TEMPLATESDIR}/${pkgname}/files
DESTDIR=${XBPS_DESTDIR}/${pkgname}-${version}
if [ -z "${sourcepkg}" ]; then
sourcepkg=${pkgname}
fi
SRCPKGDESTDIR=${XBPS_DESTDIR}/${sourcepkg}-${version}
}