diff options
Diffstat (limited to 'ardour')
-rwxr-xr-x | ardour/ardour.SlackBuild | 16 | ||||
-rw-r--r-- | ardour/slack-required | 1 |
2 files changed, 12 insertions, 5 deletions
diff --git a/ardour/ardour.SlackBuild b/ardour/ardour.SlackBuild index 62c90edd..5a2dd93a 100755 --- a/ardour/ardour.SlackBuild +++ b/ardour/ardour.SlackBuild @@ -35,6 +35,12 @@ SRC_DIR=${SRC:=$CWD} TMP=${TMP:=/tmp} REPOS=${REPOS:=$TMP} +# ------- error codes for createpkg -------------- +ERROR_WGET=31; ERROR_MAKE=32; ERROR_INSTALL=33 +ERROR_MD5=34; ERROR_CONF=35; ERROR_HELP=36 +ERROR_TAR=37; ERROR_MKPKG=38 ERROR_GPP=39 +ERROR_PATCH=40 + if [ "$ARCH" == "x86_64" ]; then export LDFLAGS="-L/lib64 -L/usr/lib64" LIBDIR=/usr/lib64 @@ -57,7 +63,7 @@ else fi if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then - wget "$URL" -O "$SRC_DIR/$SRC" + wget "$URL" -O "$SRC_DIR/$SRC" || exit $ERROR_WGET fi TMP="$TMP/$PACKAGE" @@ -69,12 +75,12 @@ tar xvf$tarflag $SRC_DIR/$SRC cd $PACKAGE-$VERSION if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then - patch -p1 < $CWD/$PACKAGE-$VERSION.diff + patch -p1 < $CWD/$PACKAGE-$VERSION.diff || exit $ERROR_PATCH fi mkdir -p $TMP/package-$PACKAGE -scons PREFIX=$TMP/package-$PACKAGE KSI=yes -scons install +scons PREFIX=$TMP/package-$PACKAGE KSI=yes || exit $ERROR_CONF +scons install || exit $ERROR_MAKE CWD="`pwd`" @@ -115,7 +121,7 @@ for file in AUTHORS AUTHORS.es BUILD CONTRIBUTORS FAQ README TRANSLATORS; do cp $CWD/DOCUMENTATION/$file* usr/doc/$PACKAGE-$VERSION/ done -makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz +makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPKG if [ "$CLEANUP" == "yes" ]; then rm -rf $TMP diff --git a/ardour/slack-required b/ardour/slack-required index 4ca6ff4f..2f6935ab 100644 --- a/ardour/slack-required +++ b/ardour/slack-required @@ -1,3 +1,4 @@ scons raptor liblrdf +ladspa |