diff options
author | Martin Lefebvre <dadexter@gmail.com> | 2010-05-11 19:45:00 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 19:45:00 +0200 |
commit | 450858c996f27fee042d3cc883a5f92d1bd8131a (patch) | |
tree | dc0c6015f8327cae3a5ccbe7a56af145d36d0442 /libraries/gtk-qt-engine/gtk-qt-engine.SlackBuild | |
parent | 8fc89b788154bc4593d5e3af431e2751eaebf586 (diff) | |
download | slackbuilds-450858c996f27fee042d3cc883a5f92d1bd8131a.tar.gz |
libraries/gtk-qt-engine: Updated for version 0.8
Diffstat (limited to 'libraries/gtk-qt-engine/gtk-qt-engine.SlackBuild')
-rw-r--r-- | libraries/gtk-qt-engine/gtk-qt-engine.SlackBuild | 40 |
1 files changed, 17 insertions, 23 deletions
diff --git a/libraries/gtk-qt-engine/gtk-qt-engine.SlackBuild b/libraries/gtk-qt-engine/gtk-qt-engine.SlackBuild index 69eb7ed798..3c169d365e 100644 --- a/libraries/gtk-qt-engine/gtk-qt-engine.SlackBuild +++ b/libraries/gtk-qt-engine/gtk-qt-engine.SlackBuild @@ -23,12 +23,14 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # Modified by the SlackBuilds.org project +# Updated for version 0.8 by ppr:kut <hmwiesinger@gmx.at> PRGNAM=gtk-qt-engine -VERSION=0.7 +VERSION=0.8 ARCH=${ARCH:-i486} -BUILD=${BUILD:-2} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -40,39 +42,30 @@ elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" fi +set -e + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP || exit 1 +cd $TMP rm -rf $PRGNAM -tar -xjvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1 -cd $PRGNAM || exit 1 +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM chown -R root:root . chmod -R u+w,go+r-w,a-s . -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix=/opt/kde \ - --sysconfdir=/etc \ - --localstatedir=/var \ - || exit 1 - -make || exit 1 -make install DESTDIR=$PKG || exit 1 +cmake \ + -DCMAKE_C_FLAGS="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX="/usr" + +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 find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null ) -( cd $PKG/opt/kde/share/man || exit - find . -type f -exec gzip -9 {} \; - for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done -) - -# Remove duplicated entry in KControl (and the resulting empty directory) -rm -rf $PKG/usr/share/applications - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README TODO \ $PKG/usr/doc/$PRGNAM-$VERSION @@ -80,6 +73,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz |