python/python-elementtree: Updated for version 1.3.

Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
This commit is contained in:
David Woodfall 2021-04-21 15:23:52 +00:00 committed by Dave Woodfall
parent 6c21906c0a
commit e7f673e463
2 changed files with 9 additions and 23 deletions

View File

@ -23,12 +23,12 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=python-elementtree
VERSION=${VERSION:-1.2.7_20070827_preview}
VERSION=${VERSION:-1.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
SRCNAM=elementtree
ARCVERSION=$(echo $VERSION | tr _ -)
COMMIT=405fb0295388a54104f3641eedfeb4c8a3e1ae4d
SRCNAM=py-elementtree
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@ -43,28 +43,14 @@ 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
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $SRCNAM-$ARCVERSION
unzip $CWD/$SRCNAM-$ARCVERSION.zip
cd $SRCNAM-$ARCVERSION
rm -rf $SRCNAM-$COMMIT
tar xvf $CWD/$SRCNAM-$COMMIT.tar.gz
cd $SRCNAM-$COMMIT
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \

View File

@ -1,8 +1,8 @@
PRGNAM="python-elementtree"
VERSION="1.2.7_20070827_preview"
VERSION="1.3"
HOMEPAGE="http://effbot.org/zone/element-index.htm"
DOWNLOAD="http://effbot.org/media/downloads/elementtree-1.2.7-20070827-preview.zip"
MD5SUM="30e2fe5edd143f347e03a8baf5d60f8a"
DOWNLOAD="https://github.com/vkris/py-elementtree/archive/405fb0295388a54104f3641eedfeb4c8a3e1ae4d/py-elementtree-405fb0295388a54104f3641eedfeb4c8a3e1ae4d.tar.gz"
MD5SUM="c40a3521424528e32f0998e31a3b36f3"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""