diff --git a/config/path b/config/path index 4bd01998a5..04d5fe3d22 100644 --- a/config/path +++ b/config/path @@ -52,7 +52,6 @@ SED="sed -i" PKG_SITE="" PKG_URL="" PKG_DEPENDS="" - PKG_BUILD_DEPENDS="" PKG_PRIORITY="optional" PKG_SECTION="" PKG_SHORTDESC="$1 (autogenerated)" diff --git a/scripts/build b/scripts/build index e8ead0074f..0d6f39af66 100755 --- a/scripts/build +++ b/scripts/build @@ -25,6 +25,11 @@ if [ -z "$1" ]; then exit 1 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 PKG_CONFIGURE_SCRIPT="" PKG_MAKE_OPTS="" @@ -48,11 +53,6 @@ STAMP=$STAMPS/$PACKAGE_NAME/build_$TARGET $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 rm -f $STAMP fi diff --git a/scripts/unpack b/scripts/unpack index da9cba63ad..975966cf39 100755 --- a/scripts/unpack +++ b/scripts/unpack @@ -25,15 +25,15 @@ if [ -z "$1" ]; then exit 1 fi -$SCRIPTS/get $1 - -STAMP=$PKG_BUILD/.openelec-unpack - if [ ! -f $PKG_DIR/package.mk ]; then printf "${boldred} no package.mk file found in $PKG_DIR${endcolor}\n" exit 1 fi +$SCRIPTS/get $1 + +STAMP=$PKG_BUILD/.openelec-unpack + mkdir -p $BUILD [ ! -d "$SOURCES/$1" -a ! -d "$PKG_DIR/sources" ] && exit 0