|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash |
|
|
|
|
# Build script for Slackware |
|
|
|
|
# Copyright (C) 2014,2015,2016 Damien Goutte-Gattat |
|
|
|
|
# Copyright (C) 2014,2015,2016,2018 Damien Goutte-Gattat |
|
|
|
|
# |
|
|
|
|
# Redistribution and use of this script, with or without modifications, |
|
|
|
|
# is permitted provided that the following conditions are met: |
|
|
|
@ -29,9 +29,9 @@
|
|
|
|
|
|
|
|
|
|
# Source package infos |
|
|
|
|
NAMESRC=${NAMESRC:-tornado} |
|
|
|
|
VERSION=${VERSION:-4.3} |
|
|
|
|
VERSION=${VERSION:-4.5.3} |
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz} |
|
|
|
|
WGET=${WGET:-https://pypi.python.org/packages/source/t/tornado/$ARCHIVE} |
|
|
|
|
WGET=${WGET:-https://pypi.python.org/packages/e3/7b/e29ab3d51c8df66922fea216e2bddfcb6430fb29620e5165b16a216e0d3c/$ARCHIVE} |
|
|
|
|
|
|
|
|
|
# Build infos |
|
|
|
|
NAMEPKG=${NAMEPKG:-tornado} |
|
|
|
@ -63,10 +63,7 @@ if [ ! -r $ARCHIVE ]; then
|
|
|
|
|
wget -c -O $ARCHIVE.part "$WGET" |
|
|
|
|
mv $ARCHIVE.part $ARCHIVE |
|
|
|
|
fi |
|
|
|
|
if [ ! -f backports.ssl_match_hostname-3.2a3.tar.gz ]; then |
|
|
|
|
wget https://pypi.python.org/packages/source/b/backports.ssl_match_hostname/backports.ssl_match_hostname-3.2a3.tar.gz |
|
|
|
|
fi |
|
|
|
|
sha1sum -c $ARCHIVE.sha1 backports.ssl_match_hostname-3.2a3.tar.gz.sha1 |
|
|
|
|
sha256sum -c $ARCHIVE.sha256 |
|
|
|
|
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1) |
|
|
|
|
|
|
|
|
|
# Compile |
|
|
|
@ -77,20 +74,20 @@ cd $NAME
|
|
|
|
|
python setup.py build |
|
|
|
|
python setup.py install --root=$PKG |
|
|
|
|
|
|
|
|
|
# Install backports.ssl_match_hostname |
|
|
|
|
tar xf $CWD/backports.ssl_match_hostname-3.2a3.tar.gz |
|
|
|
|
(cd backports.ssl_match_hostname-3.2a3 |
|
|
|
|
python setup.py build |
|
|
|
|
python setup.py install --root=$PKG |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
# Install the documentation |
|
|
|
|
mkdir -p $PKG/usr/doc/$NAME |
|
|
|
|
install -m 644 PKG-INFO README.rst $PKG/usr/doc/$NAME |
|
|
|
|
install -m 644 LICENSE PKG-INFO README.rst $PKG/usr/doc/$NAME |
|
|
|
|
|
|
|
|
|
# Copy slack-desc file |
|
|
|
|
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc |
|
|
|
|
|
|
|
|
|
# Add dependency infos |
|
|
|
|
cat <<EOF > $PKG/install/slack-required |
|
|
|
|
python-singledispatch |
|
|
|
|
python-certifi |
|
|
|
|
python-backports-abc |
|
|
|
|
EOF |
|
|
|
|
|
|
|
|
|
# Package the tree |
|
|
|
|
cd $PKG |
|
|
|
|
mkdir -p $OUT |
|
|
|
|