diff options
author | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2006-08-08 17:18:36 +0000 |
---|---|---|
committer | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2006-08-08 17:18:36 +0000 |
commit | 1175964de4e842535843c64f0ce4fbe143090a9a (patch) | |
tree | d6cc14276200a604320767b6b814621089be2176 | |
parent | 3998ba5a5e3d3276ad989a98820d6d84b97691a7 (diff) | |
download | slackbuilds-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-x | libiconv/libiconv.SlackBuild | 10 |
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 |