diff options
Diffstat (limited to 'development/postman')
-rw-r--r-- | development/postman/doinst.sh | 10 | ||||
-rw-r--r-- | development/postman/postman.SlackBuild | 36 | ||||
-rw-r--r-- | development/postman/postman.desktop | 8 | ||||
-rw-r--r-- | development/postman/postman.info | 12 | ||||
-rw-r--r-- | development/postman/slack-desc | 12 |
5 files changed, 59 insertions, 19 deletions
diff --git a/development/postman/doinst.sh b/development/postman/doinst.sh index 39f9be1ff4..e69b296100 100644 --- a/development/postman/doinst.sh +++ b/development/postman/doinst.sh @@ -1,2 +1,12 @@ ( cd usr/bin ; rm -rf postman ) ( cd usr/bin ; ln -sf /opt/postman/app/Postman postman ) + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/development/postman/postman.SlackBuild b/development/postman/postman.SlackBuild index fd931e3acf..6028f10d9b 100644 --- a/development/postman/postman.SlackBuild +++ b/development/postman/postman.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for Postman -# Copyright 2018, 2019 Ebben Aries <e@dscp.org> +# Copyright 2018-2024 Ebben Aries <slackbuilds@dscp.org> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,12 +22,16 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=postman SRCDIR=Postman SRCNAM=linux -VERSION=${VERSION:-7.2.0} +VERSION=${VERSION:-10.24.16} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} +SRCNAM2=$PRGNAM-$VERSION-$SRCNAM if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -37,7 +41,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -45,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." @@ -63,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 . \ @@ -78,6 +97,9 @@ rm -rf Postman mkdir -p $PKG/opt/$PRGNAM cp -a * $PKG/opt/$PRGNAM +mkdir -p $PKG/usr/share/applications +cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild @@ -86,4 +108,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/development/postman/postman.desktop b/development/postman/postman.desktop new file mode 100644 index 0000000000..358a963712 --- /dev/null +++ b/development/postman/postman.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Postman +Comment=Postman API Platform +Exec=/usr/bin/postman %U +Icon=/opt/postman/app/resources/app/assets/icon.png +Terminal=false +Type=Application +Categories=Development; diff --git a/development/postman/postman.info b/development/postman/postman.info index b08000e5e8..05c011c7f7 100644 --- a/development/postman/postman.info +++ b/development/postman/postman.info @@ -1,10 +1,10 @@ PRGNAM="postman" -VERSION="7.2.0" +VERSION="10.24.16" HOMEPAGE="https://www.getpostman.com" -DOWNLOAD="https://dl.pstmn.io/download/version/7.2.0/linux32" -MD5SUM="f84063cbf826a4be93fa6b698e6b9281" -DOWNLOAD_x86_64="https://dl.pstmn.io/download/version/7.2.0/linux64" -MD5SUM_x86_64="cad3736607aa986bd5056e58528660d8" +DOWNLOAD="UNSUPPORTED" +MD5SUM="" +DOWNLOAD_x86_64="https://dl.pstmn.io/download/version/10.24.16/linux64" +MD5SUM_x86_64="75fc2abf7e2115e05567f61145c49600" REQUIRES="" MAINTAINER="Ebben Aries" -EMAIL="e@dscp.org" +EMAIL="slackbuilds@dscp.org" diff --git a/development/postman/slack-desc b/development/postman/slack-desc index 6cda6f43fe..4728bd44db 100644 --- a/development/postman/slack-desc +++ b/development/postman/slack-desc @@ -8,12 +8,12 @@ |-----handy-ruler------------------------------------------------------| postman: postman (Build, test, and document your APIs faster) postman: -postman: Postman makes API development faster, easier, and better. -postman: -postman: -postman: -postman: +postman: Postman features include: +postman: * Powerful, simple to use GUI with saved history of API requests +postman: * Unlimited collections, environments, tests, and sharing +postman: * Automated testing with collection runner +postman: * Web-viewable, detailed API documentation +postman: * Flexible API monitoring, for uptime, performance, and accuracy postman: postman: Website: https://www.getpostman.com postman: -postman: |