diff options
Diffstat (limited to 'python/mypy_extensions')
-rw-r--r-- | python/mypy_extensions/mypy_extensions.SlackBuild | 20 | ||||
-rw-r--r-- | python/mypy_extensions/mypy_extensions.info | 8 |
2 files changed, 19 insertions, 9 deletions
diff --git a/python/mypy_extensions/mypy_extensions.SlackBuild b/python/mypy_extensions/mypy_extensions.SlackBuild index 1a130610a7..c845dfa33a 100644 --- a/python/mypy_extensions/mypy_extensions.SlackBuild +++ b/python/mypy_extensions/mypy_extensions.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 Tim Dickson, Scotland +# Copyright (c) 2018,2023 Tim Dickson, Scotland # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,10 +23,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=mypy_extensions -VERSION=${VERSION:-0.4.1} +VERSION=${VERSION:-1.0.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -36,7 +39,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 diff --git a/python/mypy_extensions/mypy_extensions.info b/python/mypy_extensions/mypy_extensions.info index 3b42d2ded6..ca06cf3694 100644 --- a/python/mypy_extensions/mypy_extensions.info +++ b/python/mypy_extensions/mypy_extensions.info @@ -1,10 +1,10 @@ PRGNAM="mypy_extensions" -VERSION="0.4.1" +VERSION="1.0.0" HOMEPAGE="https://pypi.org/project/mypy_extensions" -DOWNLOAD="https://files.pythonhosted.org/packages/c2/92/3cc05d1206237d54db7b2565a58080a909445330b4f90a6436302a49f0f8/mypy_extensions-0.4.1.tar.gz" -MD5SUM="d14d945e5c54e7a61607e00fcfdbbcd5" +DOWNLOAD="https://files.pythonhosted.org/packages/98/a4/1ab47638b92648243faf97a5aeb6ea83059cc3624972ab6b8d2316078d3f/mypy_extensions-1.0.0.tar.gz" +MD5SUM="5b77a3cafc7e9749a0157533c0915b5d" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="mypy" +REQUIRES="" MAINTAINER="Tim Dickson" EMAIL="dickson.tim@googlemail.com" |