summaryrefslogtreecommitdiff
path: root/development/easygui/easygui.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/easygui/easygui.SlackBuild')
-rw-r--r--development/easygui/easygui.SlackBuild24
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