diff options
author | LukenShiro <lukenshiro@ngi.it> | 2010-05-12 17:42:05 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-12 17:42:05 +0200 |
commit | 98ccecc2335d2c4ee7bd2375e106ac8801681aa8 (patch) | |
tree | 98f694d028dd8d5773b4c8aece58f55593c31b80 /libraries/pyfltk/pyfltk.SlackBuild | |
parent | 08f07ab41a4331e0bfd4b85c3a65125528ac8cb6 (diff) | |
download | slackbuilds-98ccecc2335d2c4ee7bd2375e106ac8801681aa8.tar.gz |
libraries/pyfltk: Updated for version 1.1.4
Diffstat (limited to 'libraries/pyfltk/pyfltk.SlackBuild')
-rw-r--r-- | libraries/pyfltk/pyfltk.SlackBuild | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/libraries/pyfltk/pyfltk.SlackBuild b/libraries/pyfltk/pyfltk.SlackBuild index 4af951e44c..c3e229b63c 100644 --- a/libraries/pyfltk/pyfltk.SlackBuild +++ b/libraries/pyfltk/pyfltk.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for pyfltk -# Copyright 2006-8 LukenShiro <lukenshiro@ngi.it> +# Copyright 2006-2009 LukenShiro <lukenshiro@ngi.it> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,8 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=pyfltk -SRC_PRGNAM=pyFltk -VERSION=1.1.3 +VERSION=${VERSION:-1.1.4} ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -34,12 +33,12 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +SRC_PRGNAM=pyFltk DOCFILES="CHANGES PKG-INFO INSTALL TODO COPYING README" -# html files and python test examples are now located in fltk/ subdirectory + +# html files are now located in fltk/ subdirectory HTMLDOCS="fltk/docs/*" -TESTFILES="fltk/test/*" -# Exit on most errors set -e # SLKCFLAGS are not necessary, it builds using fltk-config flags @@ -47,24 +46,23 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION +rm -rf $SRC_PRGNAM-$VERSION tar -xvf $CWD/$SRC_PRGNAM-$VERSION.tar.gz cd $SRC_PRGNAM-$VERSION -chown -R root:root . || true +chown -R root:root . chmod -R u+w,go+r-w,a-s . # Copy documentation files mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + # Move html files and python test examples in order to preserve and install them -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/{docs,test} +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/docs mv $HTMLDOCS $PKG/usr/doc/$PRGNAM-$VERSION/docs/ -mv $TESTFILES $PKG/usr/doc/$PRGNAM-$VERSION/test/ # build from swig interface files cd python -# FLTK_HOME= is not necessary anymore (include directory is auto-detected) python ./MakeSwig.py cd $TMP/$SRC_PRGNAM-$VERSION @@ -73,9 +71,10 @@ python setup.py build python setup.py install --prefix=/usr/ --root=$PKG ( cd $PKG - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null ) - + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |