diff options
Diffstat (limited to 'office/epdfview')
-rw-r--r-- | office/epdfview/README | 4 | ||||
-rw-r--r-- | office/epdfview/epdfview.SlackBuild | 16 |
2 files changed, 15 insertions, 5 deletions
diff --git a/office/epdfview/README b/office/epdfview/README index 8501ea1c98..d496284bac 100644 --- a/office/epdfview/README +++ b/office/epdfview/README @@ -1,2 +1,2 @@ -The aim of ePDFView is to make a simple PDF document viewer, in the lines of -Evince but without using the Gnome libraries. +The aim of ePDFView is to make a simple PDF document viewer, in the +lines of Evince but without using the Gnome libraries. diff --git a/office/epdfview/epdfview.SlackBuild b/office/epdfview/epdfview.SlackBuild index 0082dc260c..335cc8c570 100644 --- a/office/epdfview/epdfview.SlackBuild +++ b/office/epdfview/epdfview.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for epdfview @@ -24,10 +24,13 @@ # Modified by the SlackBuilds.org project +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=epdfview VERSION=${VERSION:-0.1.8} BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -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} @@ -111,4 +121,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 |