Browse Source

l/python-lxml: Upgraded to python-lxml-4.4.1.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
2b596df83f
  1. 1
      l/python-lxml/lxml-3.6.1.tgz.sha1
  2. 1
      l/python-lxml/lxml-4.4.1.tar.gz.sha256
  3. 24
      l/python-lxml/python-lxml.SlackBuild

1
l/python-lxml/lxml-3.6.1.tgz.sha1

@ -1 +0,0 @@
a37f3f77de191a490642d01250cf5e72153fb0b0 lxml-3.6.1.tgz

1
l/python-lxml/lxml-4.4.1.tar.gz.sha256

@ -0,0 +1 @@
c81cb40bff373ab7a7446d6bbca0190bccc5be3448b47b51d729e37799bb5692 lxml-4.4.1.tar.gz

24
l/python-lxml/python-lxml.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2010,2012,2013,2014,2016 Damien Goutte-Gattat
# Copyright (C) 2010,2012,2013,2014,2016,2019 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -26,9 +26,8 @@
# Source package infos
NAMESRC=${NAMESRC:-lxml}
VERSION=${VERSION:-3.6.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tgz}
WGET=${WGET:-http://lxml.de/files/$ARCHIVE}
VERSION=${VERSION:-4.4.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
# Build infos
NAMEPKG=${NAMEPKG:-python-lxml}
@ -71,10 +70,9 @@ esac
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
pip3 download --no-binary :all: --no-deps $NAMESRC==$VERSION
fi
sha1sum -c $ARCHIVE.sha1
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
@ -84,8 +82,16 @@ tar xf $CWD/$ARCHIVE
cd $NAME
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
python setup.py build
python setup.py install --root=$PKG
python2 setup.py build
python2 setup.py install --root=$PKG
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
python3 setup.py build
python3 setup.py install --root=$PKG
# Strip binaries
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
xargs strip --strip-unneeded 2> /dev/null
# Install the documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION

Loading…
Cancel
Save