diff options
author | Vijay Marcel <vijaymarcel@outlook.com> | 2023-06-17 07:29:23 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-06-17 07:29:49 +0700 |
commit | ab8eafd0e8fdd01b94dbd4b8b32233412fc7c2c4 (patch) | |
tree | b09aac90d3ae3e4394b15354ec72ed8e14cddc89 /python/rst2pdf | |
parent | 6670e0022b1f94d83fc2a61daf282afcf8961d67 (diff) |
python/rst2pdf: Updated for version 0.100.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/rst2pdf')
-rw-r--r-- | python/rst2pdf/rst2pdf.SlackBuild | 38 | ||||
-rw-r--r-- | python/rst2pdf/rst2pdf.info | 6 |
2 files changed, 20 insertions, 24 deletions
diff --git a/python/rst2pdf/rst2pdf.SlackBuild b/python/rst2pdf/rst2pdf.SlackBuild index 97ef2757194c1..54fb4997ca500 100644 --- a/python/rst2pdf/rst2pdf.SlackBuild +++ b/python/rst2pdf/rst2pdf.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for rst2pdf -# Copyright 2022 Vijay Marcel +# Copyright 2022-2023 Vijay Marcel # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=rst2pdf -VERSION=${VERSION:-0.99} +VERSION=${VERSION:-0.100} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -47,20 +47,6 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - set -e trap 'echo "$0 FAILED at line $LINENO!" | tee -a $OUTPUT/error-${PRGNAM}.log' ERR @@ -79,17 +65,27 @@ find -L . \ python3 setup.py install --prefix=/usr --root=$PKG --optimize=1 +cd doc +rst2man rst2pdf.rst rst2pdf.1 +mkdir -pv $PKG/usr/man/man1 +cp -a rst2pdf.1 $PKG/usr/man/man1/ +cd .. + find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a doc CHANGES.rst CODE_OF_CONDUCT.rst Contributors.txt LICENSE.txt \ - MAINTAINERS.rst PKG-INFO README.rst $PKG/usr/doc/$PRGNAM-$VERSION +cp -a CHANGES.rst CODE_OF_CONDUCT.rst Contributors.txt LICENSE.txt MAINTAINERS.rst PKG-INFO README.rst $PKG/usr/doc/$PRGNAM-$VERSION +cd doc +cp -a manual.rst gen_docs.sh rst2html-manual.py $PKG/usr/doc/$PRGNAM-$VERSION +cd .. cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 0644 {} \+ -rm -rvf $PKG/usr/doc/$PRGNAM-$VERSION/doc/output/ - -mkdir -p $PKG/install +mkdir -pv $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG diff --git a/python/rst2pdf/rst2pdf.info b/python/rst2pdf/rst2pdf.info index 7921092ebec2e..05b60716a1e8d 100644 --- a/python/rst2pdf/rst2pdf.info +++ b/python/rst2pdf/rst2pdf.info @@ -1,8 +1,8 @@ PRGNAM="rst2pdf" -VERSION="0.99" +VERSION="0.100" HOMEPAGE="https://rst2pdf.org" -DOWNLOAD="https://pypi.io/packages/source/r/rst2pdf/rst2pdf-0.99.tar.gz" -MD5SUM="dbec71c69c3a6b2915c52c529a3fd4ab" +DOWNLOAD="https://pypi.io/packages/source/r/rst2pdf/rst2pdf-0.100.tar.gz" +MD5SUM="31960321d8c4f304850a13a4dad0a3a6" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="python3-reportlab python-smartypants python-importlib_metadata" |