|
|
@ -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: |
|
|
@ -31,7 +31,7 @@ |
|
|
|
|
|
|
|
# Source package infos |
|
|
|
NAMESRC=${NAMESRC:-todoman} |
|
|
|
VERSION=${VERSION:-3.7.0} |
|
|
|
VERSION=${VERSION:-3.8.0} |
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz} |
|
|
|
|
|
|
|
# Build infos |
|
|
@ -46,6 +46,7 @@ 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 |
|
|
|
|
|
|
@ -86,7 +87,8 @@ if type -p sphinx-build ; then |
|
|
|
if ! python -c "import sphinx_autorun" ; then |
|
|
|
sed -i -e '/sphinx_autorun/d' docs/source/conf.py |
|
|
|
fi |
|
|
|
sphinx-build -b html docs/source $PKG/usr/doc/$NAMEPKG-$VERSION/html |
|
|
|
PYTHONPATH=$PKG/usr/lib$LIBDIRSUFFIX/python3.8/site-packages \ |
|
|
|
sphinx-build -b html docs/source $PKG/usr/doc/$NAMEPKG-$VERSION/html |
|
|
|
rm -rf $PKG/usr/doc/$NAMEPKG-$VERSION/html/.{buildinfo,doctrees} |
|
|
|
fi |
|
|
|
|
|
|
|