|
|
@ -1,6 +1,6 @@ |
|
|
|
#!/bin/bash |
|
|
|
# Build script for Slackware |
|
|
|
# Copyright (C) 2019 Damien Goutte-Gattat |
|
|
|
# Copyright (C) 2019,2020 Damien Goutte-Gattat |
|
|
|
# |
|
|
|
# Redistribution and use of this script, with or without modifications, |
|
|
|
# is permitted provided that the following conditions are met: |
|
|
@ -24,14 +24,10 @@ |
|
|
|
# |
|
|
|
# Latest websocket_client sourcecode is available at: |
|
|
|
# <https://github.com/websocket-client/websocket-client.git>. |
|
|
|
# |
|
|
|
# Note: Optional dependencies are only needed for Python 2. |
|
|
|
# |
|
|
|
# Optional: l/python-backports |
|
|
|
|
|
|
|
# Source package infos |
|
|
|
NAMESRC=${NAMESRC:-websocket_client} |
|
|
|
VERSION=${VERSION:-0.56.0} |
|
|
|
VERSION=${VERSION:-0.57.0} |
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz} |
|
|
|
|
|
|
|
# Build infos |
|
|
@ -71,9 +67,6 @@ cd $TMP |
|
|
|
echo "Building $ARCHIVE..." |
|
|
|
tar xf $CWD/$ARCHIVE |
|
|
|
cd $NAME |
|
|
|
# We only build for Python 3 to avoid depending on backported modules. |
|
|
|
# If Python 2 support is needed, add the corresponding stanza here and |
|
|
|
# make the optional dependencies are available. |
|
|
|
python3 setup.py build |
|
|
|
python3 setup.py install --root=$PKG |
|
|
|
|
|
|
|