lxml: Upgraded to 3.6.4.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
Willy Sudiarto Raharjo 2016-10-09 08:55:16 +07:00
parent 9c8c45cdae
commit afbcebc037
No known key found for this signature in database
GPG key ID: 887B8374D7333381

View file

@ -25,7 +25,7 @@
# Modified by Willy Sudiarto Raharjo for CSB Project # Modified by Willy Sudiarto Raharjo for CSB Project
PRGNAM=lxml PRGNAM=lxml
VERSION=${VERSION:-3.6.0} VERSION=${VERSION:-3.6.4}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_csb} TAG=${TAG:-_csb}
@ -37,7 +37,7 @@ if [ -z "$ARCH" ]; then
esac esac
fi fi
wget -c http://pypi.python.org/packages/source/l/lxml/$PRGNAM-$VERSION.tar.gz wget -c https://github.com/$PRGNAM/$PRGNAM/archive/$PRGNAM-$VERSION/$PRGNAM-$PRGNAM-$VERSION.tar.gz
CWD=$(pwd) CWD=$(pwd)
TMP=${TMP:-/tmp/csb} TMP=${TMP:-/tmp/csb}
@ -59,9 +59,9 @@ set -e
rm -rf $PKG rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP cd $TMP
rm -rf $PRGNAM-$VERSION rm -rf $PRGNAM-$PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz tar xvf $CWD/$PRGNAM-$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION cd $PRGNAM-$PRGNAM-$VERSION
chown -R root:root . chown -R root:root .
find -L . \ find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@ -72,11 +72,11 @@ find -L . \
python setup.py build --with-unicode-strings python setup.py build --with-unicode-strings
python setup.py install --skip-build --root=$PKG python setup.py install --skip-build --root=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ 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 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a *.txt PKG-INFO doc/licenses/* doc/FAQ.txt $PKG/usr/doc/$PRGNAM-$VERSION cp -a *.txt doc/licenses/* doc/FAQ.txt $PKG/usr/doc/$PRGNAM-$VERSION
rm $PKG/usr/doc/$PRGNAM-$VERSION/version.txt rm $PKG/usr/doc/$PRGNAM-$VERSION/version.txt
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild