mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-28 10:02:43 +01:00
python/rst2pdf: Updated for version 0.100.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
6670e0022b
commit
ab8eafd0e8
2 changed files with 20 additions and 24 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# Slackware build script for rst2pdf
|
# Slackware build script for rst2pdf
|
||||||
|
|
||||||
# Copyright 2022 Vijay Marcel
|
# Copyright 2022-2023 Vijay Marcel
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use of this script, with or without modification, is
|
# Redistribution and use of this script, with or without modification, is
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
cd $(dirname $0) ; CWD=$(pwd)
|
cd $(dirname $0) ; CWD=$(pwd)
|
||||||
|
|
||||||
PRGNAM=rst2pdf
|
PRGNAM=rst2pdf
|
||||||
VERSION=${VERSION:-0.99}
|
VERSION=${VERSION:-0.100}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
PKGTYPE=${PKGTYPE:-tgz}
|
PKGTYPE=${PKGTYPE:-tgz}
|
||||||
|
@ -47,20 +47,6 @@ TMP=${TMP:-/tmp/SBo}
|
||||||
PKG=$TMP/package-$PRGNAM
|
PKG=$TMP/package-$PRGNAM
|
||||||
OUTPUT=${OUTPUT:-/tmp}
|
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
|
set -e
|
||||||
trap 'echo "$0 FAILED at line $LINENO!" | tee -a $OUTPUT/error-${PRGNAM}.log' ERR
|
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
|
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 \
|
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
|
| 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
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a doc CHANGES.rst CODE_OF_CONDUCT.rst Contributors.txt LICENSE.txt \
|
cp -a CHANGES.rst CODE_OF_CONDUCT.rst Contributors.txt LICENSE.txt MAINTAINERS.rst PKG-INFO README.rst $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
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
|
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 -pv $PKG/install
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
|
||||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
PRGNAM="rst2pdf"
|
PRGNAM="rst2pdf"
|
||||||
VERSION="0.99"
|
VERSION="0.100"
|
||||||
HOMEPAGE="https://rst2pdf.org"
|
HOMEPAGE="https://rst2pdf.org"
|
||||||
DOWNLOAD="https://pypi.io/packages/source/r/rst2pdf/rst2pdf-0.99.tar.gz"
|
DOWNLOAD="https://pypi.io/packages/source/r/rst2pdf/rst2pdf-0.100.tar.gz"
|
||||||
MD5SUM="dbec71c69c3a6b2915c52c529a3fd4ab"
|
MD5SUM="31960321d8c4f304850a13a4dad0a3a6"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES="python3-reportlab python-smartypants python-importlib_metadata"
|
REQUIRES="python3-reportlab python-smartypants python-importlib_metadata"
|
||||||
|
|
Loading…
Reference in a new issue