diff options
Diffstat (limited to 'media/libs/jasper/jasper.SlackBuild')
-rw-r--r-- | media/libs/jasper/jasper.SlackBuild | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/media/libs/jasper/jasper.SlackBuild b/media/libs/jasper/jasper.SlackBuild index 5b0da6aa..cf19eb41 100644 --- a/media/libs/jasper/jasper.SlackBuild +++ b/media/libs/jasper/jasper.SlackBuild @@ -15,7 +15,7 @@ # Place - Suite 330, Boston, MA 02111-1307, USA # # slackbuild for jasper, by Rudson R. Alves -# requires: Null +# requires: # tested: jasper-1.900.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:="--enable-shared"} 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.zip" @@ -84,8 +85,9 @@ fi # Untar -cd "$TMP" +cd "$PKG_WORK" unzip "$SRC_DIR/$SRC" || exit $ERROR_TAR +PKG_SRC=`ls -l | awk '/^d/ { print $8 }'` cd "$PKG_SRC" # Configure |