|
|
|
@ -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: |
|
|
|
@ -27,7 +27,7 @@ |
|
|
|
|
|
|
|
|
|
# Source package infos |
|
|
|
|
NAMESRC=${NAMESRC:-more-itertools} |
|
|
|
|
VERSION=${VERSION:-7.2.0} |
|
|
|
|
VERSION=${VERSION:-8.3.0} |
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz} |
|
|
|
|
|
|
|
|
|
# Build infos |
|
|
|
@ -42,6 +42,8 @@ TMP=${TMP:-/tmp} |
|
|
|
|
OUT=${OUT:-$TMP/build} |
|
|
|
|
PKG=${PKG:-$OUT/$NAMEPKG} |
|
|
|
|
CWD=$(pwd) |
|
|
|
|
[ "$ARCH" = x86_64 ] && LIBDIRSUFFIX=64 || LIBDIRSUFFIX= |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set -e # Quit if a command returns non-zero |
|
|
|
|
|
|
|
|
@ -77,7 +79,8 @@ install -m 644 LICENSE README.rst $PKG/usr/doc/$NAMEPKG-$VERSION |
|
|
|
|
|
|
|
|
|
# Build HTML docs if Sphinx and the readthedocs.org theme are available |
|
|
|
|
if type -p sphinx-build && python3 -c "import sphinx_rtd_theme" ; then |
|
|
|
|
sphinx-build -b html docs $PKG/usr/doc/$NAMEPKG-$VERSION/html |
|
|
|
|
PYTHONPATH=$PKG/usr/lib$LIBDIRSUFFIX/python3.8/site-packages \ |
|
|
|
|
sphinx-build -b html docs $PKG/usr/doc/$NAMEPKG-$VERSION/html |
|
|
|
|
rm -rf $PKG/usr/doc/$NAMEPKG-$VERSION/html/.{buildinfo,doctrees} |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|