diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/doc/xmltoman/xmltoman.SlackBuild | 8 | ||||
-rw-r--r-- | app/editors/kxmleditor/kxmleditor.SlackBuild | 8 |
2 files changed, 10 insertions, 6 deletions
diff --git a/app/doc/xmltoman/xmltoman.SlackBuild b/app/doc/xmltoman/xmltoman.SlackBuild index fc55200e..0cceb00e 100644 --- a/app/doc/xmltoman/xmltoman.SlackBuild +++ b/app/doc/xmltoman/xmltoman.SlackBuild @@ -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:=""} NUMJOBS=${NUMJOBS:="-j7"} @@ -73,19 +73,21 @@ 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.orig.tar.gz" URL="http://ftp.debian.org/debian/pool/main/x/xmltoman/$SRC" -if [ ! -s "$SRC_DIR/$SRC" ] || ! "$SRC_DIR/$SRC" 2> /dev/null; then +if [ ! -s "$SRC_DIR/$SRC" ] || ! gunzip -t "$SRC_DIR/$SRC" 2> /dev/null; then wget "$URL" -O "$SRC_DIR/$SRC" || exit $ERROR_WGET 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" # Patch source diff --git a/app/editors/kxmleditor/kxmleditor.SlackBuild b/app/editors/kxmleditor/kxmleditor.SlackBuild index d7442ec0..6540107d 100644 --- a/app/editors/kxmleditor/kxmleditor.SlackBuild +++ b/app/editors/kxmleditor/kxmleditor.SlackBuild @@ -15,7 +15,7 @@ # Place - Suite 330, Boston, MA 02111-1307, USA # # slackbuild for kxmleditor, by Rudson R. Alves -# requires: Null +# requires: # tested: kxmleditor-1.1.4 # @@ -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:=""} 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 |