diff options
Diffstat (limited to 'python/python3-aiohttp/python3-aiohttp.SlackBuild')
-rw-r--r-- | python/python3-aiohttp/python3-aiohttp.SlackBuild | 38 |
1 files changed, 17 insertions, 21 deletions
diff --git a/python/python3-aiohttp/python3-aiohttp.SlackBuild b/python/python3-aiohttp/python3-aiohttp.SlackBuild index 8819ca5110..1f43b179fd 100644 --- a/python/python3-aiohttp/python3-aiohttp.SlackBuild +++ b/python/python3-aiohttp/python3-aiohttp.SlackBuild @@ -1,7 +1,9 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for python3-aiohttp -# Copyright 2019 Isaac Yu <isaacyu1@isaacyu1.com> + +# Copyright 2019-2023 Isaac Yu <isaacyu@protonmail.com> +# Maintained 2023-2024 by Jay Lanagan (j@lngn.net), Detroit, MI, USA. # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -21,11 +23,15 @@ # 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=python3-aiohttp -SRCNAM=aiohttp -VERSION=${VERSION:-3.6.2} +VERSION=${VERSION:-3.9.5} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +SRCNAM=aiohttp if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,25 +41,15 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +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} -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - set -e rm -rf $PKG @@ -75,11 +71,11 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a *.rst *.txt docs/ requirements/ CODE_OF_CONDUCT.md $PKG/usr/doc/$PRGNAM-$VERSION +cp -a CHANGES.rst CONTRIBUTORS.txt LICENSE.txt README.rst $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild 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 |