diff options
Diffstat (limited to 'network/palemoon-bin/palemoon-bin.SlackBuild')
-rw-r--r-- | network/palemoon-bin/palemoon-bin.SlackBuild | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/network/palemoon-bin/palemoon-bin.SlackBuild b/network/palemoon-bin/palemoon-bin.SlackBuild index c7f5c1523d..294ee0f2c8 100644 --- a/network/palemoon-bin/palemoon-bin.SlackBuild +++ b/network/palemoon-bin/palemoon-bin.SlackBuild @@ -1,10 +1,10 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for palemoon-bin # Copyright 2015 pomfland # Copyright 2017-2018 Skaendo <skaendo at excite dot com> -# Copyright 2018 Vasily Sora USA +# Copyright 2018,2022 Vasily Sora USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,11 +24,14 @@ # 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=palemoon-bin SRCNAM=palemoon -VERSION=${VERSION:-28.7.2} +VERSION=${VERSION:-32.5.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -38,11 +41,20 @@ case "$( uname -m )" in 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} +GTK=${GTK:-gtk2} + # We don't need cflags since nothing is being compiled here. # We do need to check the architecture though and abort when it's not # supported. @@ -63,7 +75,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $SRCNAM -tar xvf $CWD/$SRCNAM-$VERSION.linux-$ARCH.tar.bz2 +tar xvf $CWD/$SRCNAM-$VERSION.linux-$ARCH-$GTK.tar.xz cd $SRCNAM chown -R root:root . find -L . \ @@ -112,4 +124,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 |