From c2b230a4b1ecdea6b9f1d4609b3820c762e0a0e5 Mon Sep 17 00:00:00 2001 From: rhatto Date: Thu, 31 Aug 2006 19:44:05 +0000 Subject: realtime-lsm update git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@111 370017ae-e619-0410-ac65-c121f96126d4 --- realtime-lsm/realtime-lsm.SlackBuild | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/realtime-lsm/realtime-lsm.SlackBuild b/realtime-lsm/realtime-lsm.SlackBuild index 760fd7d4..505cde8d 100755 --- a/realtime-lsm/realtime-lsm.SlackBuild +++ b/realtime-lsm/realtime-lsm.SlackBuild @@ -20,6 +20,7 @@ VERSION=${VERSION:=0.1.1} BUILD=${BUILD:=1rha} SRC_DIR=${SRC:=$CWD} TMP=${TMP:=/tmp} +REPOS=${REPOS:=$TMP} if [ "$ARCH" == "x86_64" ]; then LIBDIR=/usr/lib64 @@ -38,14 +39,17 @@ 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 +TMP="$TMP/$PACKAGE" +rm -rf $TMP +mkdir -p $TMP cd $TMP -rm -rf package-$PACKAGE -mkdir package-$PACKAGE -cd package-$PACKAGE tar xvf$tarflag $SRC_DIR/$SRC cd $PACKAGE-$VERSION @@ -89,5 +93,9 @@ for file in AUTHORS COPYING ChangeLog INSTALL README; do cp $CWD/$file* usr/doc/$PACKAGE-$VERSION/ done -makepkg -c y -l y $TMP/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz +makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP +fi -- cgit v1.2.3