aboutsummaryrefslogtreecommitdiff
path: root/libraries/pyfltk
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/pyfltk')
-rw-r--r--libraries/pyfltk/pyfltk.SlackBuild25
-rw-r--r--libraries/pyfltk/pyfltk.info6
2 files changed, 15 insertions, 16 deletions
diff --git a/libraries/pyfltk/pyfltk.SlackBuild b/libraries/pyfltk/pyfltk.SlackBuild
index 4af951e44c817..c3e229b63c4e1 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
diff --git a/libraries/pyfltk/pyfltk.info b/libraries/pyfltk/pyfltk.info
index 9ef7662e0d923..e6ec9fbb12b46 100644
--- a/libraries/pyfltk/pyfltk.info
+++ b/libraries/pyfltk/pyfltk.info
@@ -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"