diff options
Diffstat (limited to 'graphics/gource/gource.SlackBuild')
-rw-r--r-- | graphics/gource/gource.SlackBuild | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/graphics/gource/gource.SlackBuild b/graphics/gource/gource.SlackBuild index 42d97e0a69..e7486547b9 100644 --- a/graphics/gource/gource.SlackBuild +++ b/graphics/gource/gource.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for gource -# Copyright 2013-2018 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy +# Copyright 2013-2022 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,10 +24,13 @@ # generated by grissiom's sbo-dev-helper +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=gource -VERSION=${VERSION:-0.49} +VERSION=${VERSION:-0.53} BUILD=${BUILD:-1} 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} @@ -56,7 +66,7 @@ else LIBDIRSUFFIX="" fi -DOCS="COPYING ChangeLog INSTALL README THANKS" +DOCS="COPYING ChangeLog INSTALL README.md THANKS" set -e @@ -95,4 +105,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 |