diff options
Diffstat (limited to 'development/easygui/easygui.SlackBuild')
-rw-r--r-- | development/easygui/easygui.SlackBuild | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/development/easygui/easygui.SlackBuild b/development/easygui/easygui.SlackBuild index 12bd57a836ff4..dd595a912c298 100644 --- a/development/easygui/easygui.SlackBuild +++ b/development/easygui/easygui.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for easygui -# Copyright 2007 LukenShiro <lukenshiro@ngi.it> +# Copyright 2007-8 LukenShiro <lukenshiro@ngi.it> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,22 +22,23 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# Exit on most errors -set -e - PRGNAM=easygui -VERSION=0.72 -ARCH=i486 -BUILD=${BUILD:-1} +VERSION=0.83 +SRC_VERSION=83 +ARCH=${ARCH:-noarch} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -PYTHON_DIR="/usr/lib/python2.5/site-packages/" +# directory for python packages +PYTHONDIR=$(python -c 'import sys, os; print os.path.join("/usr/lib", "python%s" % sys.version[:3], "site-packages")') +DOCFILES="*.png *.gif *.css *.html" -# SLKCFLAGS are not used +set -e # Exit on most errors rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT @@ -45,18 +46,18 @@ cd $TMP rm -rf $PRGNAM-$VERSION mkdir -p $PRGNAM-$VERSION cd $PRGNAM-$VERSION -unzip $CWD/$PRGNAM.zip -chown -R root:root . || true +unzip $CWD/${PRGNAM}${SRC_VERSION}.zip +chown -R root:root . chmod -R u+w,go+r-w,a-s . # Copy documentation files mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -install -m 644 easygui.txt $CWD/LICENSE $PKG/usr/doc/$PRGNAM-$VERSION +install -m 0644 $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild # install .py source file -mkdir -p $PKG/$PYTHON_DIR -install -m 644 $PRGNAM.py $PKG/$PYTHON_DIR +mkdir -p $PKG/$PYTHONDIR +install -m 0644 $PRGNAM.py $PKG/$PYTHONDIR mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |