diff options
Diffstat (limited to 'python/mypy/mypy.SlackBuild')
-rw-r--r-- | python/mypy/mypy.SlackBuild | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/python/mypy/mypy.SlackBuild b/python/mypy/mypy.SlackBuild index 6bfd0b39d8..edadfa83d9 100644 --- a/python/mypy/mypy.SlackBuild +++ b/python/mypy/mypy.SlackBuild @@ -1,9 +1,9 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for mypy # Written by Tim Dickson dickson.tim@googlemail.com -# Copyright (c) 2018/9 Tim Dickson, Scotland +# Copyright (c) 2018-24 Tim Dickson, Scotland # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,10 +26,13 @@ # note to self. github source tar.gz misses out typeshed directory contents, # so use pypi.org/project/mypy download source tar.gz instead. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=mypy -VERSION=${VERSION:-0.761} +VERSION=${VERSION:-1.9.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -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} @@ -86,4 +96,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 |