diff --git a/l/python-mechanize/mechanize-0.2.5.tar.gz.sha1 b/l/python-mechanize/mechanize-0.2.5.tar.gz.sha1 deleted file mode 100644 index e6457656..00000000 --- a/l/python-mechanize/mechanize-0.2.5.tar.gz.sha1 +++ /dev/null @@ -1 +0,0 @@ -9d2fb74fc762e54848c0b3ed4b6a9c73722ef619 mechanize-0.2.5.tar.gz diff --git a/l/python-mechanize/mechanize-0.3.3.tar.gz.sha256 b/l/python-mechanize/mechanize-0.3.3.tar.gz.sha256 new file mode 100644 index 00000000..64c3676c --- /dev/null +++ b/l/python-mechanize/mechanize-0.3.3.tar.gz.sha256 @@ -0,0 +1 @@ +cf51c7c61ba11ed51490412d3f19bb2b0d8ab3ffce76a4c3250f4d97c4902f05 mechanize-0.3.3.tar.gz diff --git a/l/python-mechanize/python-mechanize.SlackBuild b/l/python-mechanize/python-mechanize.SlackBuild index 3aac6b4f..3f8ff91e 100755 --- a/l/python-mechanize/python-mechanize.SlackBuild +++ b/l/python-mechanize/python-mechanize.SlackBuild @@ -1,6 +1,6 @@ #!/bin/bash # Build script for Slackware -# Copyright (C) 2012,2016 Damien Goutte-Gattat +# Copyright (C) 2012,2016,2017 Damien Goutte-Gattat # # Redistribution and use of this script, with or without modifications, # is permitted provided that the following conditions are met: @@ -23,13 +23,13 @@ # Contact: Damien Goutte-Gattat # # Latest mechanize sourcecode is available at: -# . +# . # Source package infos NAMESRC=${NAMESRC:-mechanize} -VERSION=${VERSION:-0.2.5} +VERSION=${VERSION:-0.3.3} ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz} -WGET=${WGET:-http://pypi.python.org/packages/source/m/mechanize/$ARCHIVE} +WGET=${WGET:-https://github.com/python-mechanize/mechanize/archive/v$VERSION.tar.gz} # Build infos NAMEPKG=${NAMEPKG:-python-mechanize} @@ -74,7 +74,7 @@ if [ ! -r $ARCHIVE ]; then wget -c -O $ARCHIVE.part "$WGET" mv $ARCHIVE.part $ARCHIVE fi -sha1sum -c $ARCHIVE.sha1 +sha256sum -c $ARCHIVE.sha256 NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1) # Compile @@ -89,8 +89,12 @@ python setup.py install --root=$PKG # Install the documentation mkdir -p $PKG/usr/doc/$NAME -install -m 644 COPYING.txt README.txt $PKG/usr/doc/$NAME -cp -r docs/html $PKG/usr/doc/$NAME/html +install -m 644 COPYRIGHT ChangeLog LICENSE README.rst $PKG/usr/doc/$NAME + +if type -p sphinx-build ; then + make -C docs html + cp -r docs/_build/html $PKG/usr/doc/$NAME/html +fi # Copy slack-desc file install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc