aboutsummaryrefslogtreecommitdiff
path: root/speex/speex.SlackBuild
diff options
context:
space:
mode:
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2006-08-31 20:35:44 +0000
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2006-08-31 20:35:44 +0000
commit7ab94faba29487dea8dfed117f84048845678ae0 (patch)
treefc35739c2a972305c416c6d7340eeecd8254a0c1 /speex/speex.SlackBuild
parent0164bf010c859e844ca16e89be14ea7b78695897 (diff)
downloadslackbuilds-7ab94faba29487dea8dfed117f84048845678ae0.tar.gz
slackbuilds-7ab94faba29487dea8dfed117f84048845678ae0.tar.bz2
speex update
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@120 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'speex/speex.SlackBuild')
-rwxr-xr-xspeex/speex.SlackBuild22
1 files changed, 14 insertions, 8 deletions
diff --git a/speex/speex.SlackBuild b/speex/speex.SlackBuild
index 69359315..86f3ab7c 100755
--- a/speex/speex.SlackBuild
+++ b/speex/speex.SlackBuild
@@ -20,6 +20,7 @@ ARCH=${ARCH:=x86_64}
BUILD=${BUILD:=1rha}
TMP=${TMP:=/tmp}
SRC_DIR=${SRC:=$CWD}
+REPOS=${REPOS:=$TMP}
RTOOL="wget"
PACKAGE_EXT="gz"
@@ -32,6 +33,9 @@ else
tarflag="z"
fi
+SRC_DIR="$SRC_DIR/$PACKAGE"
+mkdir -p $SRC_DIR
+
if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then
wget "$URL" -O "$SRC_DIR/$SRC"
fi
@@ -52,18 +56,16 @@ else
LIBDIR="/usr/lib"
fi
-PKG=$TMP/package-speex
-
-if [ ! -d $TMP ]; then
- mkdir -p $TMP
-fi
-
-rm -rf $PKG
+TMP="$TMP/$PACKAGE"
+PKG=$TMP/package-$PACKAGE
+rm -rf $TMP
mkdir -p $PKG
cd $TMP
+
rm -rf speex-$VERSION
tar xvf$tarflag $SRC_DIR/speex-$VERSION.tar.gz
cd speex-$VERSION
+
chown -R root.root .
find . -perm 777 -exec chmod 755 {} \;
find . -perm 664 -exec chmod 644 {} \;
@@ -137,5 +139,9 @@ if [ -f $CWD/slack-required ]; then
fi
cd $PKG
-makepkg -l y -c n $TMP/speex-$VERSION-$ARCH-$BUILD.tgz
+makepkg -l y -c n $REPOS/speex-$VERSION-$ARCH-$BUILD.tgz
+
+if [ "$CLEANUP" == "yes" ]; then
+ rm -rf $TMP
+fi