diff options
author | LukenShiro <lukenshiro@ngi.it> | 2010-05-11 20:00:23 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 20:00:23 +0200 |
commit | 6503b265d62bb9198e16fb767a97c877ac070bda (patch) | |
tree | 2dd3b606519ef78a9aa7169e26c5c71d384cb694 /development/easygui/easygui.SlackBuild | |
parent | e5e53d4c75f4df315bec8ff761a67dea1b002d98 (diff) | |
download | slackbuilds-6503b265d62bb9198e16fb767a97c877ac070bda.tar.gz |
development/easygui: Added to 12.0 repository
Diffstat (limited to 'development/easygui/easygui.SlackBuild')
-rw-r--r-- | development/easygui/easygui.SlackBuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/development/easygui/easygui.SlackBuild b/development/easygui/easygui.SlackBuild new file mode 100644 index 0000000000..12bd57a836 --- /dev/null +++ b/development/easygui/easygui.SlackBuild @@ -0,0 +1,65 @@ +#!/bin/sh + +# Slackware build script for easygui + +# Copyright 2007 LukenShiro <lukenshiro@ngi.it> +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# 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} +TAG=${TAG:-_SBo} +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +PYTHON_DIR="/usr/lib/python2.5/site-packages/" + +# SLKCFLAGS are not used + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +mkdir -p $PRGNAM-$VERSION +cd $PRGNAM-$VERSION +unzip $CWD/$PRGNAM.zip +chown -R root:root . || true +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 +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/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz |