Browse Source

ap/khal: Updated.

current-20200608
Damien Goutte-Gattat 11 months ago
parent
commit
49510baf23
  1. 9
      ap/khal/khal.SlackBuild

9
ap/khal/khal.SlackBuild

@ -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:
@ -44,6 +44,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
@ -99,11 +100,13 @@ if type -p sphinx-build ; then
sed -i -e '/sphinxcontrib.newsfeed/d' doc/source/conf.py
sed -i -e '/^ news/d' doc/source/index.rst
rm -rf doc/source/news{,.rst}
sphinx-build -b html doc/source $PKG/usr/doc/$NAMEPKG-$VERSION/html
PYTHONPATH=$PKG/usr/lib$LIBDIRSUFFIX/python3.8/site-packages \
sphinx-build -b html doc/source $PKG/usr/doc/$NAMEPKG-$VERSION/html
rm -rf $PKG/usr/doc/$NAMEPKG-$VERSION/html/{.buildinfo,.doctrees}
mkdir -p $PKG/usr/man/man1
sphinx-build -b man doc/source man
PYTHONPATH=$PKG/usr/lib$LIBDIRSUFFIX/python3.8/site-packages \
sphinx-build -b man doc/source man
gzip -c -9 man/khal.1 > $PKG/usr/man/man1/khal.1.gz
fi

Loading…
Cancel
Save