From 1175964de4e842535843c64f0ce4fbe143090a9a Mon Sep 17 00:00:00 2001 From: rhatto Date: Tue, 8 Aug 2006 17:18:36 +0000 Subject: libiconv update git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@22 370017ae-e619-0410-ac65-c121f96126d4 --- libiconv/libiconv.SlackBuild | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3