xbps-src: added 'clean' target to remove pkg build directory.

This commit is contained in:
Juan RP 2010-05-20 04:05:35 +02:00
parent db16467721
commit c785787fdd
3 changed files with 21 additions and 2 deletions

View file

@ -252,6 +252,19 @@ prepare_tmpl()
fi
}
remove_tmpl_wrksrc()
{
local lwrksrc="$1"
if [ -z "$lwrksrc" -o ! -d "$lwrksrc" ]; then
return 1
fi
msg_normal "Cleaning '$pkgname' build directory... "
rm -rf $lwrksrc
return $?
}
set_tmpl_common_vars()
{
[ -z "$pkgname" ] && return 1