install_funcs.sh: a meta-template needs $destdir.

--HG--
extra : convert_revision : 176760b9d895a32c95f48078a28ca85598de95a3
This commit is contained in:
Juan RP 2008-12-22 06:27:34 +01:00
parent ea273f1e32
commit fbcdbde679
1 changed files with 5 additions and 1 deletions

View File

@ -36,8 +36,12 @@ install_src_phase()
[ -z $pkg ] && [ -z $pkgname ] && return 1
#
# There's nothing we can do if we are a meta template.
# Just creating the dir is enough to write the package metadata.
#
[ "$build_style" = "meta-template" ] && return 0
if [ "$build_style" = "meta-template" ]; then
mkdir -p $XBPS_DESTDIR/$pkgname-$version
return 0
fi
[ ! -d $wrksrc ] && msg_error "unexistent build directory [$wrksrc]"