aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2006-08-08 17:18:36 +0000
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2006-08-08 17:18:36 +0000
commit1175964de4e842535843c64f0ce4fbe143090a9a (patch)
treed6cc14276200a604320767b6b814621089be2176
parent3998ba5a5e3d3276ad989a98820d6d84b97691a7 (diff)
downloadslackbuilds-1175964de4e842535843c64f0ce4fbe143090a9a.tar.gz
slackbuilds-1175964de4e842535843c64f0ce4fbe143090a9a.tar.bz2
libiconv update
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@22 370017ae-e619-0410-ac65-c121f96126d4
-rwxr-xr-xlibiconv/libiconv.SlackBuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/libiconv/libiconv.SlackBuild b/libiconv/libiconv.SlackBuild
index 3cd4c4b8..b3cfd1dd 100755
--- a/libiconv/libiconv.SlackBuild
+++ b/libiconv/libiconv.SlackBuild
@@ -20,6 +20,7 @@ VERSION=${VERSION:=1.9.2}
BUILD=${BUILD:=1rha}
SRC_DIR=${SRC:=$CWD}
TMP=${TMP:=/tmp}
+REPOS=${REPOS:=$TMP}
if [ "$ARCH" == "x86_64" ]; then
LIBDIR=/usr/lib64
@@ -38,11 +39,18 @@ 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
@@ -93,5 +101,5 @@ done
echo 'chroot . /sbin/ldconfig' > install/doinst.sh
-makepkg -c y -l y $TMP/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz
+makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz