summaryrefslogtreecommitdiffstats
path: root/python/python3-aiohttp/python3-aiohttp.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'python/python3-aiohttp/python3-aiohttp.SlackBuild')
-rw-r--r--python/python3-aiohttp/python3-aiohttp.SlackBuild35
1 files changed, 15 insertions, 20 deletions
diff --git a/python/python3-aiohttp/python3-aiohttp.SlackBuild b/python/python3-aiohttp/python3-aiohttp.SlackBuild
index fbb43cc567..d690ebabe5 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-2021 Isaac Yu <isaacyu1@isaacyu1.com>
+
+# Copyright 2019-2023 Isaac Yu <isaacyu@protonmail.com>
+# Maintained 2023 by Jay Lanagan (j@lngn.net), Detroit, MI, USA.
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -21,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=python3-aiohttp
-VERSION=${VERSION:-3.7.3}
+VERSION=${VERSION:-3.9.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
SRCNAM=aiohttp
@@ -36,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
@@ -76,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