libraries/kwebkitpart: Added (web browser component)

Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
Luciano Tropea 2010-08-24 00:08:01 -04:00 committed by Erik Hanson
parent b92d9bec21
commit 7bb0c10d23
5 changed files with 127 additions and 0 deletions

View File

@ -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.

View File

@ -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

View File

@ -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}

View File

@ -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"

View File

@ -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: