python/insipid-sphinx-theme: Updated for version 0.4.1.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Vijay Marcel 2023-06-16 19:18:43 +07:00 committed by Willy Sudiarto Raharjo
parent afe834f9c2
commit 8c1775ccb0
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 13 additions and 28 deletions

View file

@ -2,7 +2,7 @@
# Slackware build script for insipid-sphinx-theme
# 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=insipid-sphinx-theme
VERSION=${VERSION:-0.3.5}
VERSION=${VERSION:-0.4.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -38,9 +38,6 @@ if [ -z "$ARCH" ]; then
esac
fi
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@ -50,47 +47,35 @@ 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 $OUTPUT/error-${PRGNAM}.log' ERR
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
rm -rvf $PKG
mkdir -pv $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
rm -rvf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -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 --root=$PKG
python3 setup.py install --prefix=/usr --root=$PKG --optimize=1
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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CONTRIBUTING.rst LICENSE README.rst NEWS.rst PKG-INFO $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CONTRIBUTING.rst LICENSE README.rst NEWS.rst $PKG/usr/doc/$PRGNAM-$VERSION
cp -r doc $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 {} \+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

View file

@ -1,8 +1,8 @@
PRGNAM="insipid-sphinx-theme"
VERSION="0.3.5"
VERSION="0.4.1"
HOMEPAGE="https://github.com/mgeier/insipid-sphinx-theme"
DOWNLOAD="https://pypi.io/packages/source/i/insipid-sphinx-theme/insipid-sphinx-theme-0.3.5.tar.gz"
MD5SUM="552796a2775fb6503a3771a04252ad7a"
DOWNLOAD="https://github.com/mgeier/insipid-sphinx-theme/archive/0.4.1/insipid-sphinx-theme-0.4.1.tar.gz"
MD5SUM="309491de6b5ebcda327146ce51f99f91"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""