diff options
Diffstat (limited to 'python/easygui/easygui.SlackBuild')
-rw-r--r-- | python/easygui/easygui.SlackBuild | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/python/easygui/easygui.SlackBuild b/python/easygui/easygui.SlackBuild index 665f600ed0141..3e96772d636d4 100644 --- a/python/easygui/easygui.SlackBuild +++ b/python/easygui/easygui.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for easygui -# Copyright 2007-2011 LukenShiro, Italy +# Copyright 2007-2015 LukenShiro, Italy # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,8 +23,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=easygui -VERSION=${VERSION:-0.96} -BUILD=${BUILD:-2} +VERSION=${VERSION:-0.97.4} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -40,8 +40,6 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -SRC_VERSION=version_${VERSION}_docs - if [ "$ARCH" = "i486" ]; then LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then @@ -55,30 +53,27 @@ fi # directory for python packages PYTHONDIR=$(python -c "import sys, os; print os.path.join('/usr/lib${LIBDIRSUFFIX}', 'python%s' % sys.version[:3], 'site-packages')") -DOCFILES="cookbook faq epydoc pydoc tutorial" -set -e +set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -mkdir -p $PRGNAM-$VERSION +unzip $CWD/${PRGNAM}-${VERSION}.zip cd $PRGNAM-$VERSION -tar xvf $CWD/${PRGNAM}_${SRC_VERSION}.tar.gz 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 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 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; # install .py source file and sample file python ./setup.py build install --root=$PKG # Copy documentation files mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -for docdir in $DOCFILES ; do mv $docdir $PKG/usr/doc/$PRGNAM-$VERSION/ ; done cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |