|
|
|
@ -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: |
|
|
|
@ -25,15 +25,12 @@ |
|
|
|
|
# Latest streamlink sourcecode is available at: |
|
|
|
|
# <https://github.com/streamlink/streamlink>. |
|
|
|
|
# |
|
|
|
|
# Note: Optional dependencies are required for Python 2 only. |
|
|
|
|
# |
|
|
|
|
# Depends: l/pycryptodome, l/pysocks, l/python-iso3166, l/python-iso639 |
|
|
|
|
# Depends: l/python-isodate, l/python-websocket-client |
|
|
|
|
# Optional: l/python-backports, l/python-futures, l/python-singledispatch |
|
|
|
|
|
|
|
|
|
# Source package infos |
|
|
|
|
NAMESRC=${NAMESRC:-streamlink} |
|
|
|
|
VERSION=${VERSION:-1.3.0} |
|
|
|
|
VERSION=${VERSION:-1.4.1} |
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz} |
|
|
|
|
|
|
|
|
|
# Build infos |
|
|
|
@ -73,9 +70,6 @@ cd $TMP |
|
|
|
|
echo "Building $ARCHIVE..." |
|
|
|
|
tar xf $CWD/$ARCHIVE |
|
|
|
|
cd $NAME |
|
|
|
|
# We build for Python 3 only to avoid depending on backported modules. |
|
|
|
|
# For Python 2 support, add the appropriate stanza here and make sure |
|
|
|
|
# the optional dependencies listed above are available. |
|
|
|
|
python3 setup.py build |
|
|
|
|
python3 setup.py install --root=$PKG |
|
|
|
|
|
|
|
|
@ -83,6 +77,11 @@ python3 setup.py install --root=$PKG |
|
|
|
|
mkdir -p $PKG/usr/doc/$NAME |
|
|
|
|
install -m 644 AUTHORS CHANGELOG.md LICENSE README.md $PKG/usr/doc/$NAME |
|
|
|
|
|
|
|
|
|
# Build HTML docs if possible |
|
|
|
|
if PYTHONPATH=build/lib sphinx-build -b html docs $PKG/usr/doc/$NAME/html ; then |
|
|
|
|
rm -rf $PKG/usr/doc/$NAME/html/.{buildinfo,doctrees} |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
# Copy slack-desc file |
|
|
|
|
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc |
|
|
|
|
|
|
|
|
|