diff options
author | LukenShiro <lukenshiro@ngi.it> | 2010-05-12 17:38:22 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-12 17:38:22 +0200 |
commit | ebeebd47d7437c30791c01e71f5b8b78522be855 (patch) | |
tree | 3659c6ba24651679ab3f02b90505763be3fb303d /development/easygui/easygui.SlackBuild | |
parent | d487978acc977bde4249a5ad186c987bde9ae9de (diff) | |
download | slackbuilds-ebeebd47d7437c30791c01e71f5b8b78522be855.tar.gz |
development/easygui: Updated for version 0.91
Diffstat (limited to 'development/easygui/easygui.SlackBuild')
-rw-r--r-- | development/easygui/easygui.SlackBuild | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/development/easygui/easygui.SlackBuild b/development/easygui/easygui.SlackBuild index dd595a912c..17a2ac5742 100644 --- a/development/easygui/easygui.SlackBuild +++ b/development/easygui/easygui.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for easygui -# Copyright 2007-8 LukenShiro <lukenshiro@ngi.it> +# Copyright 2007-2009 LukenShiro <lukenshiro@ngi.it> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,10 +23,9 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=easygui -VERSION=0.83 -SRC_VERSION=83 -ARCH=${ARCH:-noarch} -BUILD=${BUILD:-2} +VERSION=${VERSION:-0.91} +ARCH=noarch +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} CWD=$(pwd) @@ -34,9 +33,11 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +SRC_VERSION=v$VERSION # 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" +SAMPLEFILE="python_and_check_logo.gif" +DOCFILES="*.txt *.html" set -e # Exit on most errors @@ -46,19 +47,20 @@ cd $TMP rm -rf $PRGNAM-$VERSION mkdir -p $PRGNAM-$VERSION cd $PRGNAM-$VERSION -unzip $CWD/${PRGNAM}${SRC_VERSION}.zip +tar xvf $CWD/${PRGNAM}_${SRC_VERSION}.tar.gz chown -R root:root . chmod -R u+w,go+r-w,a-s . +# install .py source file and sample file +mkdir -p $PKG/$PYTHONDIR +install -m 0644 $PRGNAM.py $PKG/$PYTHONDIR +cp -a $SAMPLEFILE $PKG/$PYTHONDIR + # Copy documentation files mkdir -p $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/$PYTHONDIR -install -m 0644 $PRGNAM.py $PKG/$PYTHONDIR - mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |