aboutsummaryrefslogtreecommitdiff
path: root/cinelerra
diff options
context:
space:
mode:
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2006-10-18 16:50:47 +0000
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2006-10-18 16:50:47 +0000
commit290cc1bb2bc633183e165b64d72e7ac449920068 (patch)
tree59bf22a59e0493476a0f532439fd882d82927172 /cinelerra
parent93fa70126cc8e1732d56bcb5be28da42b9319d82 (diff)
downloadslackbuilds-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 'cinelerra')
-rwxr-xr-xcinelerra/cinelerra.SlackBuild43
1 files changed, 27 insertions, 16 deletions
diff --git a/cinelerra/cinelerra.SlackBuild b/cinelerra/cinelerra.SlackBuild
index b317bd6b..7fafc4a4 100755
--- a/cinelerra/cinelerra.SlackBuild
+++ b/cinelerra/cinelerra.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; ERROR_SVN=41;
+
if [ "$ARCH" == "x86_64" ]; then
LIBDIR=/usr/lib64
else
@@ -44,26 +50,31 @@ fi
SRC_DIR="$SRC_DIR/$PACKAGE"
mkdir -p $SRC_DIR
-rm -rf $TMP/$PACKAGE
-
-cd $TMP
-
-svn checkout svn://svn.skolelinux.org/cinelerra/trunk/hvirtual
-
-mv hvirtual cinelerra
+TMP=$TMP/$PACKAGE
+rm -rf $TMP
+mkdir -p $TMP
+
+if [ -d "$SRC_DIR/cinelerra" ]; then
+ cd $SRC_DIR/cinelerra
+ svn update || exit $ERROR_SVN
+else
+ cd $SRC_DIR
+ svn checkout svn://svn.skolelinux.org/cinelerra/trunk/hvirtual
+ mv hvirtual cinelerra
+fi
-cd cinelerra
+cd $SRC_DIR
+VERSION=r"`svnversion cinelerra`"
+cd $SRC_DIR/cinelerra
if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then
- patch -p1 < $CWD/$PACKAGE-$VERSION.diff
+ patch -p1 < $CWD/$PACKAGE-$VERSION.diff || exit $ERROR_PATCH
fi
-VERSION=r"`svnversion cinelerra`"
-
-./autogen.sh
-./configure --prefix=/usr --libdir=$LIBDIR
-make || exit 32
-make DESTDIR=$TMP/package-$PACKAGE install
+./autogen.sh || exit $ERROR_CONF
+./configure --prefix=/usr --libdir=$LIBDIR || exit $ERROR_CONF
+make || exit $ERROR_MAKE
+make DESTDIR=$TMP/package-$PACKAGE install || exit $ERROR_INSTALL
CWD="`pwd`"
@@ -102,7 +113,7 @@ for file in AUTHORS COPYING ChangeLog INSTALL LICENSE NEWS README TODO;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