diff options
Diffstat (limited to 'perl/perl-Mail-DKIM/perl-Mail-DKIM.SlackBuild')
-rw-r--r-- | perl/perl-Mail-DKIM/perl-Mail-DKIM.SlackBuild | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/perl/perl-Mail-DKIM/perl-Mail-DKIM.SlackBuild b/perl/perl-Mail-DKIM/perl-Mail-DKIM.SlackBuild index b4ac70f5d3..af52d597fe 100644 --- a/perl/perl-Mail-DKIM/perl-Mail-DKIM.SlackBuild +++ b/perl/perl-Mail-DKIM/perl-Mail-DKIM.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware Package Build Script for perl modules: Mail::DKIM # Home Page https://metacpan.org/release/Mail-DKIM @@ -25,10 +25,13 @@ # NEGLIGENCE OR 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-Mail-DKIM" -VERSION=${VERSION:-0.52} +VERSION=${VERSION:-1.20240124} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} SRCNAM="$(printf $PRGNAM | cut -f2- -d-)" @@ -40,7 +43,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} @@ -61,7 +71,7 @@ else LIBDIRSUFFIX="" fi -DOCS="ChangeLog" +DOCS="Changes HACKING.DKIM LICENSE README README.md TODO" rm -fr $TMP/$SRCNAM-$VERSION $PKG mkdir -p $TMP $PKG $OUTPUT @@ -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 |