From f02f5893afda05db26a556c3aa22aa8a1224c547 Mon Sep 17 00:00:00 2001 From: rudson Date: Sun, 2 Dec 2007 01:28:09 +0000 Subject: git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1485 370017ae-e619-0410-ac65-c121f96126d4 --- dev/db/sqlite/sqlite.SlackBuild | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'dev/db/sqlite') diff --git a/dev/db/sqlite/sqlite.SlackBuild b/dev/db/sqlite/sqlite.SlackBuild index 06a56063..a1086d26 100755 --- a/dev/db/sqlite/sqlite.SlackBuild +++ b/dev/db/sqlite/sqlite.SlackBuild @@ -15,7 +15,7 @@ # Place - Suite 330, Boston, MA 02111-1307, USA # # slackbuild for sqlite, by Rudson R. Alves -# requires: Null +# requires: # tested: sqlite-3.5.1 # @@ -39,7 +39,7 @@ TMP=${TMP:=/tmp} PKG=${PKG:=$TMP/package-$PKG_NAME} REPOS=${REPOS:=$TMP} PREFIX=${PREFIX:=/usr} -PKG_SRC="$TMP/$SRC_NAME-$SRC_VERSION" +PKG_WORK="$TMP/$SRC_NAME" CONF_OPTIONS=${CONF_OPTIONS:="--sysconfdir=/etc"} NUMJOBS=${NUMJOBS:="-j7"} @@ -73,6 +73,7 @@ rm -rf "$PKG" 2> /dev/null mkdir -p "$SRC_DIR" || exit $ERROR_MKDIR mkdir -p "$PKG" || exit $ERROR_MKDIR mkdir -p "$REPOS" || exit $ERROR_MKDIR +mkdir -p "$PKG_WORK" || exit $ERROR_MKDIR # Dowload source if necessary SRC="$SRC_NAME-$VERSION.tar.gz" @@ -84,8 +85,9 @@ fi # Untar -cd "$TMP" +cd "$PKG_WORK" tar --no-same-owner --no-same-permissions -xvf "$SRC_DIR/$SRC" || exit $ERROR_TAR +PKG_SRC=`ls -l | awk '/^d/ { print $8 }'` cd "$PKG_SRC" # Configure -- cgit v1.2.3