diff options
author | Christoph Willing <chris.willing@iinet.net.au> | 2016-08-08 16:15:04 +1000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-08-13 07:22:49 +0700 |
commit | 3144cbd8800cbd9e617b380e08af7cd1c341c6cf (patch) | |
tree | d1bd416e170f44c510173afea83810e650eeb054 /python/feedparser/feedparser.SlackBuild | |
parent | 6543be6e329eac710f378920a8b20e6c85daad18 (diff) | |
download | slackbuilds-3144cbd8800cbd9e617b380e08af7cd1c341c6cf.tar.gz |
python/feedparser: Updated for version 5.2.1
Signed-off-by: Christoph Willing <chris.willing@iinet.net.au>
Diffstat (limited to 'python/feedparser/feedparser.SlackBuild')
-rw-r--r-- | python/feedparser/feedparser.SlackBuild | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/python/feedparser/feedparser.SlackBuild b/python/feedparser/feedparser.SlackBuild index 4eeb9f8bb1..2f43888dd4 100644 --- a/python/feedparser/feedparser.SlackBuild +++ b/python/feedparser/feedparser.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for feedparser # Modified by Luis Henrique <lmello.009@gmail.com> -# Maintained 2014 by Christoph Willing <chris.willing@iinet.net.au> +# Maintained 2014-2016 by Christoph Willing <chris.willing@linux.com> # Copyright 2008-2009 Chess Griffin <chess@chessgriffin.com> # All rights reserved. @@ -25,8 +25,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=feedparser -VERSION=5.1.3 -BUILD=${BUILD:-2} +VERSION=5.2.1 +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -42,10 +42,10 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -DOCS="LICENSE README" +DOCS="LICENSE NEWS README.rst" -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -58,28 +58,29 @@ else LIBDIRSUFFIX="" fi +set -e + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xf $CWD/$VERSION.tar.gz || tar xf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; - -python setup.py build || exit 1 + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -python setup.py install --root $PKG || exit 1 +python setup.py build +python setup.py install --root $PKG 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 $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +cp -a $DOCS docs/* $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |