scripts/build, scripts/install: add support for $PKG_BUILD_DEPENDS and $PKG_DEPENDS for use in metafile

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-07-21 21:31:32 +02:00
parent 60b7c76189
commit 34f1f2f7ae
2 changed files with 8 additions and 1 deletions

View File

@ -36,6 +36,10 @@ if [ ! -f $STAMP ]; then
printf "%${INDENT}c BUILD $1\n" >&$SILENT_OUT
export INDENT=$((${INDENT:-1}+$INDENT_SIZE))
for p in $PKG_BUILD_DEPENDS; do
$SCRIPTS/build $p
done
if [ -f $PKG_DIR/build ]; then
$PKG_DIR/build $@ >&$VERBOSE_OUT
if [ "$DEBUG" = no ]; then

View File

@ -28,11 +28,14 @@ if [ -d $PKG_DIR/profile.d ]; then
fi
$SCRIPTS/build $@
printf "%${INDENT}c INSTALL $1\n" >&$SILENT_OUT
#dialog --infobox "%${INDENT}c INSTALL $1\n" 15 40
export INDENT=$((${INDENT:-1}+$INDENT_SIZE))
for p in $PKG_DEPENDS; do
$SCRIPTS/install $p
done
if [ -f $PKG_DIR/install ]; then
$PKG_DIR/install $@ >&$VERBOSE_OUT
else