libraries/pyfltk: Updated for version 1.1.4

This commit is contained in:
LukenShiro 2010-05-12 17:42:05 +02:00 committed by David Somero
parent 08f07ab41a
commit 98ccecc233
2 changed files with 16 additions and 17 deletions

View file

@ -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
HTMLDOCS="fltk/docs/*"
TESTFILES="fltk/test/*"
# Exit on most errors
# html files are now located in fltk/ subdirectory
HTMLDOCS="fltk/docs/*"
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

View file

@ -1,8 +1,8 @@
PRGNAM="pyfltk"
VERSION="1.1.3"
VERSION="1.1.4"
HOMEPAGE="http://pyfltk.sourceforge.net/"
DOWNLOAD="http://downloads.sourceforge.net/pyfltk/pyFltk-1.1.3.tar.gz"
MD5SUM="9e1eefc1a78d82f6b533531001aeb547"
DOWNLOAD="http://downloads.sourceforge.net/pyfltk/pyFltk-1.1.4.tar.gz"
MD5SUM="36a7c0daf78dc1dfe035e0c195d16c9a"
MAINTAINER="LukenShiro"
EMAIL="lukenshiro@ngi.it"
APPROVED="dsomero"