diff options
Diffstat (limited to 'perl/perl-x11-protocol')
-rw-r--r-- | perl/perl-x11-protocol/README | 3 | ||||
-rw-r--r-- | perl/perl-x11-protocol/perl-x11-protocol.SlackBuild | 16 |
2 files changed, 15 insertions, 4 deletions
diff --git a/perl/perl-x11-protocol/README b/perl/perl-x11-protocol/README index b8ea92de30..c53dc1f962 100644 --- a/perl/perl-x11-protocol/README +++ b/perl/perl-x11-protocol/README @@ -1,3 +1,4 @@ X11::Protocol and the related modules in this distribution are a rough equivalent of Xlib (libX11.a, with a bit of Xau and Xext mixed in) -used for drawing windows on and otherwise manipulating X11 window servers. +used for drawing windows on and otherwise manipulating X11 window +servers. diff --git a/perl/perl-x11-protocol/perl-x11-protocol.SlackBuild b/perl/perl-x11-protocol/perl-x11-protocol.SlackBuild index c2cc8ed8ce..9afa583cbe 100644 --- a/perl/perl-x11-protocol/perl-x11-protocol.SlackBuild +++ b/perl/perl-x11-protocol/perl-x11-protocol.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for perl-x11-protocol @@ -24,10 +24,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=perl-x11-protocol VERSION=${VERSION:-0.56} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} SRCNAM=X11-Protocol @@ -39,7 +42,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} @@ -83,4 +93,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 |