diff --git a/lxml/lxml.SlackBuild b/lxml/lxml.SlackBuild index e274bfd..55de34e 100644 --- a/lxml/lxml.SlackBuild +++ b/lxml/lxml.SlackBuild @@ -25,7 +25,7 @@ # Modified by Willy Sudiarto Raharjo for CSB Project PRGNAM=lxml -VERSION=${VERSION:-3.6.0} +VERSION=${VERSION:-3.6.4} BUILD=${BUILD:-1} TAG=${TAG:-_csb} @@ -37,7 +37,7 @@ if [ -z "$ARCH" ]; then esac 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) TMP=${TMP:-/tmp/csb} @@ -59,9 +59,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-$PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$PRGNAM-$VERSION chown -R root:root . find -L . \ \( -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 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 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 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild