diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2022-03-04 22:33:52 +1300 |
---|---|---|
committer | Andrew Clemons <andrew.clemons@gmail.com> | 2022-03-05 00:18:23 +1300 |
commit | f93e9e1772b83c6cc9226f92ef20bb943b3272c4 (patch) | |
tree | c23d0fa9636f030ab1868034e8f513865fdb0c5a /development/postman | |
parent | 3bf04612c0762f18fff12865e5c57280439f0cce (diff) |
development/postman: Fix tarball handling with content disp.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Diffstat (limited to 'development/postman')
-rw-r--r-- | development/postman/postman.SlackBuild | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/development/postman/postman.SlackBuild b/development/postman/postman.SlackBuild index 9ffb7b27ce48a..f048e91326f95 100644 --- a/development/postman/postman.SlackBuild +++ b/development/postman/postman.SlackBuild @@ -31,6 +31,7 @@ VERSION=${VERSION:-9.14.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} +SRCNAM2=$PRGNAM-$VERSION-$SRCNAM if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -55,12 +56,15 @@ OUTPUT=${OUTPUT:-/tmp} case "$ARCH" in x86_64) SRC="${SRCNAM}64" + SRC2="${SRCNAM2}-x64.tar.gz" ;; i586) SRC="${SRCNAM}32" + SRC2="${SRCNAM2}-x32.tar.gz" ;; i686) SRC="${SRCNAM}32" + SRC2="${SRCNAM2}-x32.tar.gz" ;; *) echo "$ARCH is not supported." @@ -73,8 +77,13 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$SRC +rm -rf $SRCDIR +# handle download with content-disposition (browser etc) +if [ -e $CWD/$SRC ] ; then + tar xvf $CWD/$SRC +else + tar xvf $CWD/$SRC2 +fi cd $SRCDIR chown -R root:root . find -L . \ |