diff options
Diffstat (limited to 'office/latexdiff/latexdiff.SlackBuild')
-rw-r--r-- | office/latexdiff/latexdiff.SlackBuild | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/office/latexdiff/latexdiff.SlackBuild b/office/latexdiff/latexdiff.SlackBuild index 61ffae61d2..eb19b9c6dc 100644 --- a/office/latexdiff/latexdiff.SlackBuild +++ b/office/latexdiff/latexdiff.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for latexdiff -# Copyright 2018 Dominik Drobek <dominik.drobek (at) o2.pl> +# Copyright 2018, 2020 Dominik Drobek <dominik.drobek (at) o2.pl> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,13 +22,23 @@ # 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=latexdiff -VERSION=${VERSION:-1.3.0} +VERSION=${VERSION:-1.3.1.1} ARCH=noarch BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +# 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 -CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -63,4 +73,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc 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 |