From 2dc963dab138f4873d7caa8084bd3645ef1a5c9b Mon Sep 17 00:00:00 2001 From: rhatto Date: Thu, 31 Aug 2006 18:36:37 +0000 Subject: smartmontools update git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@102 370017ae-e619-0410-ac65-c121f96126d4 --- patches/smartmontools/smartmontools.SlackBuild | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'patches/smartmontools') diff --git a/patches/smartmontools/smartmontools.SlackBuild b/patches/smartmontools/smartmontools.SlackBuild index 5aaa5c5d..8d55ac26 100755 --- a/patches/smartmontools/smartmontools.SlackBuild +++ b/patches/smartmontools/smartmontools.SlackBuild @@ -20,6 +20,7 @@ ARCH=${ARCH:=x86_64} BUILD=${BUILD:=1rha} TMP=${TMP:=/tmp} SRC_DIR=${SRC:=$CWD} +REPOS=${REPOS:=$TMP} if [ "$ARCH" == "x86_64" ]; then LIBDIR=/usr/lib64 @@ -50,7 +51,6 @@ if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then wget "$URL.asc" -O "$SRC_DIR/$SRC.asc" fi - if [ ! -d $TMP ]; then mkdir -p $TMP # location to build the source fi @@ -87,10 +87,10 @@ cat $CWD/slack-desc > $PKG/install/slack-desc # Build the package: cd $PKG -makepkg -l y -c n $TMP/smartmontools-$VERSION-$ARCH-$BUILD.tgz +makepkg -l y -c n $REPOS/smartmontools-$VERSION-$ARCH-$BUILD.tgz # Clean up the extra stuff: -if [ "$1" = "--cleanup" ]; then - rm -rf $TMP/smartmontools-$VERSION - rm -rf $PKG +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP fi + -- cgit v1.2.3