diff options
author | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2006-10-18 16:50:47 +0000 |
---|---|---|
committer | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2006-10-18 16:50:47 +0000 |
commit | 290cc1bb2bc633183e165b64d72e7ac449920068 (patch) | |
tree | 59bf22a59e0493476a0f532439fd882d82927172 /scons | |
parent | 93fa70126cc8e1732d56bcb5be28da42b9319d82 (diff) | |
download | slackbuilds-290cc1bb2bc633183e165b64d72e7ac449920068.tar.gz slackbuilds-290cc1bb2bc633183e165b64d72e7ac449920068.tar.bz2 |
lots of changes
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@430 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'scons')
-rwxr-xr-x | scons/scons.SlackBuild | 14 | ||||
-rw-r--r-- | scons/slack-required | 1 |
2 files changed, 10 insertions, 5 deletions
diff --git a/scons/scons.SlackBuild b/scons/scons.SlackBuild index cfe11074..c9cb18d7 100755 --- a/scons/scons.SlackBuild +++ b/scons/scons.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_GPG=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,10 +75,10 @@ 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 -python setup.py install --prefix=$TMP/package-$PACKAGE +python setup.py install --prefix=$TMP/package-$PACKAGE --standard-lib || exit $ERROR_INSTALL CWD="`pwd`" @@ -108,7 +114,7 @@ for file in CHANGES.txt LICENSE.txt MANIFEST README.txt RELEASE.txt; do cp $CWD/$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/scons/slack-required b/scons/slack-required deleted file mode 100644 index fdc793e7..00000000 --- a/scons/slack-required +++ /dev/null @@ -1 +0,0 @@ -python |