diff options
Diffstat (limited to 'office/tpp')
-rw-r--r-- | office/tpp/README | 9 | ||||
-rw-r--r-- | office/tpp/tpp.SlackBuild | 18 | ||||
-rw-r--r-- | office/tpp/tpp.info | 2 |
3 files changed, 20 insertions, 9 deletions
diff --git a/office/tpp/README b/office/tpp/README index 6b2420a1e8..09f6420fa8 100644 --- a/office/tpp/README +++ b/office/tpp/README @@ -1,4 +1,5 @@ -tpp stands for text presentation program and is an ncurses-based presentation -tool. The presentation can be written with your favorite editor in a simple -description format and then shown on any text terminal that is supported by -ncurses - ranging from an old VT100 to the Linux framebuffer to an xterm. +tpp stands for text presentation program and is an ncurses-based +presentation tool. The presentation can be written with your favorite +editor in a simple description format and then shown on any text +terminal that is supported by ncurses - ranging from an old VT100 to +the Linux framebuffer to an xterm. diff --git a/office/tpp/tpp.SlackBuild b/office/tpp/tpp.SlackBuild index ca39ac7d10..769bd3812b 100644 --- a/office/tpp/tpp.SlackBuild +++ b/office/tpp/tpp.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for tpp -# Copyright 2016 Jostein Berntsen <jbernts@broadpark.no> +# Copyright 2016 Jostein Berntsen <jvbernts@online.no> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,10 +22,13 @@ # 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=tpp VERSION=${VERSION:-1.3.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} SRCNAM=tpp @@ -37,7 +40,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} @@ -113,4 +123,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 diff --git a/office/tpp/tpp.info b/office/tpp/tpp.info index e37db1ec65..1802c0e903 100644 --- a/office/tpp/tpp.info +++ b/office/tpp/tpp.info @@ -7,4 +7,4 @@ DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="ncurses-ruby" MAINTAINER="Jostein Berntsen" -EMAIL="jbernts@broadpark.no" +EMAIL="jvbernts@online.no" |