diff options
author | Luciano Tropea <luxiano.a2000@gmail.com> | 2010-08-24 00:08:01 -0400 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-08-29 15:32:11 -0500 |
commit | 7bb0c10d237c6f6c10fb901abbcbfd527900eda7 (patch) | |
tree | c6909b193b6d529bc2fa2beebfc5a76e94a9d3fb /libraries/kwebkitpart | |
parent | b92d9bec21e1c62ac6e71f59125cbc9336d6aee0 (diff) | |
download | slackbuilds-7bb0c10d237c6f6c10fb901abbcbfd527900eda7.tar.gz |
libraries/kwebkitpart: Added (web browser component)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/kwebkitpart')
-rw-r--r-- | libraries/kwebkitpart/README | 7 | ||||
-rw-r--r-- | libraries/kwebkitpart/doinst.sh | 6 | ||||
-rw-r--r-- | libraries/kwebkitpart/kwebkitpart.SlackBuild | 85 | ||||
-rw-r--r-- | libraries/kwebkitpart/kwebkitpart.info | 10 | ||||
-rw-r--r-- | libraries/kwebkitpart/slack-desc | 19 |
5 files changed, 127 insertions, 0 deletions
diff --git a/libraries/kwebkitpart/README b/libraries/kwebkitpart/README new file mode 100644 index 0000000000..37f801a706 --- /dev/null +++ b/libraries/kwebkitpart/README @@ -0,0 +1,7 @@ +KWebKitPart is a web browser component for KDE (KPart) based on (Qt)WebKit. +You can use it for example for browsing the web in Konqueror. + +KWebKitPart is still in early development and thus not guaranteed to be in +production quality yet. + +KDE 4.4 or greater is required for building and running KWebKitPart.
\ No newline at end of file diff --git a/libraries/kwebkitpart/doinst.sh b/libraries/kwebkitpart/doinst.sh new file mode 100644 index 0000000000..30eb690936 --- /dev/null +++ b/libraries/kwebkitpart/doinst.sh @@ -0,0 +1,6 @@ +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi + diff --git a/libraries/kwebkitpart/kwebkitpart.SlackBuild b/libraries/kwebkitpart/kwebkitpart.SlackBuild new file mode 100644 index 0000000000..ba783cf29a --- /dev/null +++ b/libraries/kwebkitpart/kwebkitpart.SlackBuild @@ -0,0 +1,85 @@ +#!/bin/sh + +# Slackware build script for kwebkitpart + +# Written by Luciano Tropea <luxiano.a2000@gmail.com> + +PRGNAM=kwebkitpart +VERSION=${VERSION:-0.9.6} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +BUILDDIR=$TMP/build-$PRGNAM +SRCDIR=$TMP/127960-$PRGNAM-$VERSION +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/127960-$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION +chown -R root:root . +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 {} \; + +mkdir build +cd build + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX:PATH=$(kde4-config --prefix) \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + .. + make + make install DESTDIR=$PKG +cd - + +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/$PRGNAM-$VERSION +cp -a \ + README TODO \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/doinst.sh > $PKG/install/doinst.sh +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} + diff --git a/libraries/kwebkitpart/kwebkitpart.info b/libraries/kwebkitpart/kwebkitpart.info new file mode 100644 index 0000000000..da0db678e7 --- /dev/null +++ b/libraries/kwebkitpart/kwebkitpart.info @@ -0,0 +1,10 @@ +PRGNAM="kwebkitpart" +VERSION="0.9.6" +HOMEPAGE="http://kde-apps.org/content/show.php?content=127960" +DOWNLOAD="http://kde-apps.org/CONTENT/content-files/127960-kwebkitpart-0.9.6.tar.bz2" +MD5SUM="017b56eae5462617bf5fded092280e1f" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Luciano Tropea" +EMAIL="luxiano.a2000@gmail.com" +APPROVED="dsomero" diff --git a/libraries/kwebkitpart/slack-desc b/libraries/kwebkitpart/slack-desc new file mode 100644 index 0000000000..a93af8b825 --- /dev/null +++ b/libraries/kwebkitpart/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +kwebkitpart: KWebKitPart (web browser component) +kwebkitpart: +kwebkitpart: KWebKitPart is a web browser component for KDE (KPart) based on +kwebkitpart: (Qt)WebKit. You can use it for example for browsing the web in +kwebkitpart: Konqueror. KWebKitPart is still in early development and thus not +kwebkitpart: guaranteed to be in production quality yet. +kwebkitpart: +kwebkitpart: +kwebkitpart: Homepage: http://kde-apps.org/content/show.php?content=127960 +kwebkitpart: +kwebkitpart: |