development/kompozer: Added (Easy Web Authoring)

Signed-off-by: Erik Hanson <erik@slackbuilds.org>
This commit is contained in:
Giovanne Castro 2010-08-30 05:48:20 -05:00 committed by Erik Hanson
parent f6f9a52921
commit 2f7f4cecc0
7 changed files with 137 additions and 0 deletions

View File

@ -0,0 +1,6 @@
KompoZer is a complete web authoring system that combines web file
management and easy-to-use WYSIWYG web page editing.
KompoZer is designed to be extremely easy to use, making it ideal
for non-technical computer users who want to create an attractive
professional-looking web site without needing to know HTML or web
coding.

View File

@ -0,0 +1,10 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
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,80 @@
#!/bin/sh
# Slackware build script for kompozer
# Written by Giovanne Castro <giovannefc@ig.com.br>
PRGNAM=kompozer
VERSION=${VERSION:-0.8b3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
# No flags/configure needed as it is just a binary repackaging.
ARCH=i686
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
# This should allow you to either pass a different value of KOMPOZERLANG
# when you run the script (KOMPOZERLANG=pt-BR ./kompozer.SlackBuild for
# example) or change it in this script. Note that you will need to have
# the correct tarball in the build directory for this to work...
# You can get localized tarballs from the following location:
# http://sourceforge.net/projects/kompozer/files/
KOMPOZERLANG=${KOMPOZERLANG:-en-US}
set -e # Exit on most errors
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $PKG
# Copy kompozer libraries
mkdir -p $PKG/usr/lib
( cd $PKG/usr/lib
tar xvf $CWD/kompozer-$VERSION.$KOMPOZERLANG.gcc4.2-$ARCH.tar.gz || exit 1
mv kompozer kompozer-$VERSION
ln -sf kompozer-$VERSION kompozer
cd kompozer-$VERSION
sed -i -e "s/usr\/local/usr/" kompozer
cd $PKG/usr/lib/kompozer-$VERSION ) || exit 1
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 {} \;
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
# Create link to executable
mkdir -p $PKG/usr/bin
( cd $PKG/usr/bin
ln -sf /usr/lib/kompozer-$VERSION/kompozer .
) || exit 1
# Install icons
mkdir -p $PKG/usr/share/applications
cp -a $CWD/kompozer.desktop $PKG/usr/share/applications/mozilla-kompozer.desktop
mkdir -p $PKG/usr/share/pixmaps
cp -a $CWD/kompozer.png $PKG/usr/share/pixmaps/kompozer.png
# Move and copy documentation to correct place
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
mv $PKG/usr/lib/kompozer-$VERSION/LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
mv $PKG/usr/lib/kompozer-$VERSION/bloaturls.txt $PKG/usr/doc/$PRGNAM-$VERSION
mv $PKG/usr/lib/kompozer-$VERSION/install.log $PKG/usr/doc/$PRGNAM-$VERSION
mv $PKG/usr/lib/kompozer-$VERSION/dependentlibs.list $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
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View File

@ -0,0 +1,12 @@
[Desktop Entry]
Encoding=UTF-8
Name=kompoZer
GenericName=Web Authoring System
Comment=Create a Web Site
Comment[pt_BR]=Autorador de Web Sites
Exec=kompozer
Icon=kompozer.png
Terminal=false
Type=Application
StartupNotify=true
Categories=Application;Development;

View File

@ -0,0 +1,10 @@
PRGNAM="kompozer"
VERSION="0.8b3"
HOMEPAGE="http://www.kompozer.net/"
DOWNLOAD="http://sourceforge.net/projects/kompozer/files/current/0.8b3/linux-i686/kompozer-0.8b3.en-US.gcc4.2-i686.tar.gz/download"
MD5SUM="1ba5327de6a795af5c3a0e72245352f6"
DOWNLOAD_x86_64="UNSUPPORTED"
MD5SUM_x86_64=""
MAINTAINER="Giovanne Castro"
EMAIL="giovannefc@ig.com.br"
APPROVED="Erik Hanson"

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

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----------------------------------------------------------|
kompozer: KompoZer (Easy Web Authoring)
kompozer:
kompozer: KompoZer is a complete web authoring system that combines web file
kompozer: management and easy-to-use WYSIWYG web page editing.
kompozer: KompoZer is designed to be extremely easy to use, making it ideal
kompozer: for non-technical computer users who want to create an attractive
kompozer: professional-looking web site without needing to know HTML or web
kompozer: coding.
kompozer:
kompozer: Home Page: http://www.kompozer.net/
kompozer: