python/python3-xmldiff: Updated for version 2.7.0.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Vijay Marcel 2024-05-17 08:09:24 +07:00 committed by Willy Sudiarto Raharjo
parent 379c345a0c
commit 44d74dcc4d
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 25 additions and 9 deletions

View file

@ -2,7 +2,7 @@
# Slackware build script for python3-xmldiff
# Copyright 2023 Vijay Marcel
# Copyright 2023-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=python3-xmldiff
VERSION=${VERSION:-2.6.3}
VERSION=${VERSION:-2.7.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -49,6 +49,23 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-march=i586 -mtune=i686 -pipe -O2 -fPIC"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-march=i686 -mtune=i686 -pipe -O2 -fPIC"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-march=x86-64 -mtune=generic -pipe -O2 -fPIC"
LIBDIRSUFFIX="64"
elif [ "$ARCH" = "aarch64" ]; 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
@ -66,14 +83,13 @@ 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
CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" 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
| 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.txt README.rst README.txt $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CHANGES.rst LICENSE.txt README.rst $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 {} \+

View file

@ -1,8 +1,8 @@
PRGNAM="python3-xmldiff"
VERSION="2.6.3"
VERSION="2.7.0"
HOMEPAGE="https://github.com/Shoobx/xmldiff"
DOWNLOAD="https://pypi.io/packages/source/x/xmldiff/xmldiff-2.6.3.tar.gz"
MD5SUM="139f973cd3b66a642c1dd1737bce40dd"
DOWNLOAD="https://pypi.io/packages/source/x/xmldiff/xmldiff-2.7.0.tar.gz"
MD5SUM="3f548773840e42655c6083940e056207"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="python3-lxml"