buildsystem: clean up and cosmetics

This commit is contained in:
Stefan Saraev 2014-01-27 15:05:34 +02:00 committed by Stephan Raue
parent cc94d58f27
commit a029deb2f1
3 changed files with 9 additions and 10 deletions

View File

@ -52,7 +52,6 @@ SED="sed -i"
PKG_SITE="" PKG_SITE=""
PKG_URL="" PKG_URL=""
PKG_DEPENDS="" PKG_DEPENDS=""
PKG_BUILD_DEPENDS=""
PKG_PRIORITY="optional" PKG_PRIORITY="optional"
PKG_SECTION="" PKG_SECTION=""
PKG_SHORTDESC="$1 (autogenerated)" PKG_SHORTDESC="$1 (autogenerated)"

View File

@ -25,6 +25,11 @@ if [ -z "$1" ]; then
exit 1 exit 1
fi fi
if [ ! -f $PKG_DIR/package.mk ]; then
printf "${boldred} no package.mk file found in $PKG_DIR${endcolor}\n"
exit 1
fi
# set defaults # set defaults
PKG_CONFIGURE_SCRIPT="" PKG_CONFIGURE_SCRIPT=""
PKG_MAKE_OPTS="" PKG_MAKE_OPTS=""
@ -48,11 +53,6 @@ STAMP=$STAMPS/$PACKAGE_NAME/build_$TARGET
$SCRIPTS/unpack $PACKAGE_NAME $SCRIPTS/unpack $PACKAGE_NAME
if [ ! -f $PKG_DIR/package.mk ]; then
printf "${boldred} no package.mk file found in $PKG_DIR${endcolor}\n"
exit 1
fi
if [ -f $STAMP -a $PKG_DIR/package.mk -nt $STAMP ]; then if [ -f $STAMP -a $PKG_DIR/package.mk -nt $STAMP ]; then
rm -f $STAMP rm -f $STAMP
fi fi

View File

@ -25,15 +25,15 @@ if [ -z "$1" ]; then
exit 1 exit 1
fi fi
$SCRIPTS/get $1
STAMP=$PKG_BUILD/.openelec-unpack
if [ ! -f $PKG_DIR/package.mk ]; then if [ ! -f $PKG_DIR/package.mk ]; then
printf "${boldred} no package.mk file found in $PKG_DIR${endcolor}\n" printf "${boldred} no package.mk file found in $PKG_DIR${endcolor}\n"
exit 1 exit 1
fi fi
$SCRIPTS/get $1
STAMP=$PKG_BUILD/.openelec-unpack
mkdir -p $BUILD mkdir -p $BUILD
[ ! -d "$SOURCES/$1" -a ! -d "$PKG_DIR/sources" ] && exit 0 [ ! -d "$SOURCES/$1" -a ! -d "$PKG_DIR/sources" ] && exit 0