python/pallets-sphinx-themes: Updated for version 2.1.3.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Vijay Marcel 2024-10-11 11:44:39 +07:00 committed by Willy Sudiarto Raharjo
parent 17958d7d73
commit 2a6fcf547b
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 11 additions and 10 deletions

View file

@ -2,7 +2,7 @@
# Slackware build script for pallets-sphinx-themes
# Copyright 2022-2023 Vijay Marcel
# Copyright 2022-2024 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=pallets-sphinx-themes
VERSION=${VERSION:-2.1.1}
VERSION=${VERSION:-2.1.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -64,15 +64,16 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
python3 setup.py install --prefix=/usr --root=$PKG --optimize=1
python3 -m build --wheel --no-isolation
python3 -m installer --destdir="$PKG" dist/*.whl
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 --remove-section=.comment --remove-section=.note 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CHANGES.rst LICENSE.rst README.rst $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CHANGES.rst LICENSE.txt README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 0644 {} \+
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod -v 0644 {} \+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

View file

@ -1,10 +1,10 @@
PRGNAM="pallets-sphinx-themes"
VERSION="2.1.1"
VERSION="2.1.3"
HOMEPAGE="https://github.com/pallets/pallets-sphinx-themes/"
DOWNLOAD="https://github.com/pallets/pallets-sphinx-themes/archive/2.1.1/pallets-sphinx-themes-2.1.1.tar.gz"
MD5SUM="7072fffc37a9d1790c98b8ae15f1f25d"
DOWNLOAD="https://github.com/pallets/pallets-sphinx-themes/archive/2.1.3/pallets-sphinx-themes-2.1.3.tar.gz"
MD5SUM="1fdc10cea907989d3f84694c3c6bd64a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
REQUIRES="python3-flit_core python3-installer python3-pyproject-hooks python3-build Sphinx"
MAINTAINER="Vijay Marcel"
EMAIL="vijaymarcel@outlook.com"