diff options
Diffstat (limited to 'libraries/lxml/lxml.SlackBuild')
-rw-r--r-- | libraries/lxml/lxml.SlackBuild | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/libraries/lxml/lxml.SlackBuild b/libraries/lxml/lxml.SlackBuild index 94e5d1ce27..7a97b0b0e2 100644 --- a/libraries/lxml/lxml.SlackBuild +++ b/libraries/lxml/lxml.SlackBuild @@ -3,7 +3,7 @@ # Written by Larry Hajali <larryhaja[at]gmail[dot]com> PRGNAM=lxml -VERSION=${VERSION:-2.2.1} +VERSION=${VERSION:-2.2.4} ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -13,6 +13,14 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" +fi + set -e rm -rf $PKG @@ -28,7 +36,7 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -python setup.py install --root=$PKG +CFLAGS="$SLKCFLAGS" python setup.py install --root=$PKG ( cd $PKG find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ @@ -41,11 +49,11 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ *.txt doc/licenses/* doc/FAQ.txt \ $PKG/usr/doc/$PRGNAM-$VERSION -rm -f $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 mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |