summaryrefslogtreecommitdiff
path: root/libraries/pyqt4/pyqt4.SlackBuild
diff options
context:
space:
mode:
authorAleksandar Samardzic <asamardzic@gmail.com>2010-05-11 22:24:17 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-11 22:24:17 +0200
commite4326b0bb4d2aad583e4fee0c1c2f9c436d81181 (patch)
tree9a32f6c4eb88168cf77e24fb3a70290bc51a007a /libraries/pyqt4/pyqt4.SlackBuild
parent1177ecd0a5e31031eb8f4c4558be38cc303aab1c (diff)
downloadslackbuilds-e4326b0bb4d2aad583e4fee0c1c2f9c436d81181.tar.gz
libraries/pyqt4: Updated for version 4.4.4
Diffstat (limited to 'libraries/pyqt4/pyqt4.SlackBuild')
-rw-r--r--libraries/pyqt4/pyqt4.SlackBuild33
1 files changed, 19 insertions, 14 deletions
diff --git a/libraries/pyqt4/pyqt4.SlackBuild b/libraries/pyqt4/pyqt4.SlackBuild
index 2826f5bf5c..5488737b7c 100644
--- a/libraries/pyqt4/pyqt4.SlackBuild
+++ b/libraries/pyqt4/pyqt4.SlackBuild
@@ -2,23 +2,25 @@
# Slackware build script for PyQt
-# Written by Aleksandar B. Samardzic <asamardzic@matf.bg.ac.yu>
+# Written by Aleksandar Samardzic <asamardzic@gmail.com>
-NAME=pyqt4
-VERSION=4.3.3
+PRGNAM=pyqt4
+VERSION=${VERSION:-4.4.4}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
-PKG=${PKG:-$TMP/package-$NAME}
+PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
set -e
@@ -26,11 +28,15 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $NAME-$VERSION
+rm -rf $PRGNAM-$VERSION
tar xvf $CWD/PyQt-x11-gpl-$VERSION.tar.gz
cd PyQt-x11-gpl-$VERSION
chown -R root:root .
-chmod -R u+w,go+r-w,a-s .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
echo "yes" | python configure.py -q \
/usr/bin/qmake-qt4 \
@@ -40,17 +46,16 @@ echo "yes" | python configure.py -q \
make
make install DESTDIR=$PKG
-( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
-)
+find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF | \
+ cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-mkdir -p $PKG/usr/doc/$NAME-$VERSION
-cp -a ChangeLog LICENSE NEWS README THANKS doc/* $PKG/usr/doc/$NAME-$VERSION
-cat $CWD/$NAME.SlackBuild > $PKG/usr/doc/$NAME-$VERSION/$NAME.SlackBuild
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a ChangeLog GPL_EXCEPTION*.TXT LICENSE.* NEWS OPENSOURCE-NOTICE.TXT \
+ README THANKS doc/* $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$NAME-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz