diff options
Diffstat (limited to 'development/spyder/spyder.SlackBuild')
-rw-r--r-- | development/spyder/spyder.SlackBuild | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/development/spyder/spyder.SlackBuild b/development/spyder/spyder.SlackBuild index e022e9c6e9..99f5cf5b69 100644 --- a/development/spyder/spyder.SlackBuild +++ b/development/spyder/spyder.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for spyder -# Copyright 2010-2013 Larry Hajali <larryhaja[at]gmail[dot]com> +# Copyright 2010-2015 Larry Hajali <larryhaja[at]gmail[dot]com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=spyder -VERSION=${VERSION:-2.2.5} +VERSION=${VERSION:-2.3.5.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -64,16 +64,15 @@ unzip $CWD/$PRGNAM-$VERSION.zip 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 {} \; + \( -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 {} \; # Sphinx craps out when files are in Windows format. We need to # change doc/conf.py to Unix format. Simple hack! :/ for FILE in $(find . -type f \( ! -iname "*\.*o" ! -iname "*\.png" \) \ -| xargs grep -Pl '\r$'); -do + | xargs grep -Pl '\r$'); do sed -i 's/\r//g' $FILE done @@ -88,10 +87,12 @@ for i in 16 24 32 36 48 64 96 128; do done install -D -m 0644 spyderlib/images/$PRGNAM.svg \ $PKG/usr/share/icons/hicolor/scalable/apps/$PRGNAM.svg -rm -rf $PKG/usr/share/pixmaps + +# Remove unwanted files/directories. +rm -rf $PKG/usr/share/pixmaps $PKG/usr/bin/spyder_win_post_install.py mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a PKG-INFO README LICENSE $PKG/usr/doc/$PRGNAM-$VERSION +cp -a PKG-INFO README.md LICENSE $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |