Kompozer

If there's software you need and you can't find, make a request for it.
Post Reply
munichjohn
Posts: 2
Joined: 18. Aug 2010, 03:46

Kompozer

Post by munichjohn » 18. Aug 2010, 04:03

Hello!

I've just installed Salix, it went very well. GSLAPT didn't find Kompozer when I searched for it. Could it be made available?

http://kompozer.net/

Best, JohnS...

User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Kompozer

Post by thenktor » 18. Aug 2010, 06:10

Here is an old SLKBUILD of kompozer. It fails to build with the latest Kompozer version. Perhaps anybody wants to investigate the problem. You'll also need an 48x48 kompozer.png icon.

Code: Select all

#Maintainer: Thorsten Muehlfelder <thenktor(at)gmx.de>

pkgname=kompozer
pkgver=0.8b3
pkgrel=1tm
source=("http://surfnet.dl.sourceforge.net/project/kompozer/current/$pkgver/kompozer-$pkgver-src.tar.bz2" "kompozer.png")
docs=('LICENSE' 'LEGAL')
url="http://www.kompozer.net/"

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"$pkgname - WYSIWYG HTML editor"
"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."
)

build() {
	cd $startdir/src/mozilla

	# copy icon to right location
	mkdir -p -m 755 $startdir/pkg/usr/share/icons/hicolor/48x48/apps || return 1
	install -o root -g root -m 755 $startdir/kompozer.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps/ || return 1

	# create dektop file
	mkdir -p -m 755 $startdir/pkg/usr/share/applications || return 1
	cat << "EOF" > $startdir/pkg/usr/share/applications/kompozer.desktop
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=KompoZer
GenericName=HTML Editor
Comment=Web Site Creator
Exec=kompozer
Icon=kompozer.png
Terminal=false
Type=Application
StartupWMClass=kompozer-bin
X-Desktop-File-Install-Version=0.9
Categories=Application;Development; 
EOF

	# create /usr/lib/kompozer/extensions
	mkdir -p -m 755 $startdir/pkg/usr/lib/kompozer/extensions || return 1
	cat << "EOF" > $startdir/pkg/usr/lib/kompozer/extensions/Extensions.rdf
<?xml version="1.0"?>
<RDF:RDF xmlns:em="http://www.mozilla.org/2004/em-rdf#"
         xmlns:NC="http://home.netscape.com/NC-rdf#"
         xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  <RDF:Description RDF:about="urn:mozilla:theme:{972ce4c6-7e08-4474-a285-3208198ce6fd}"
                   em:version="1.0"
                   em:name="KompoZer (classic)"
                   em:description="KompoZer default theme"
                   em:creator="Linspire Inc."
                   em:homepageURL="http://kompozer.net/"
                   em:internalName="classic/1.0"
                   em:locked="true">
    <em:contributor>Ingolfur Haraldsson</em:contributor>
    <em:contributor>Daniel Glazman</em:contributor>
    <em:contributor>Fabien Cazenave</em:contributor>
    <em:targetApplication RDF:resource="rdf:#$akZaz"/>
  </RDF:Description>
  <RDF:Seq RDF:about="urn:mozilla:extension:root">
  </RDF:Seq>
  <RDF:Description RDF:about="rdf:#$akZaz"
                   em:id="{136c295a-4a5a-41cf-bf24-5cee526720d5}"
                   em:minVersion="0.7"
                   em:maxVersion="1.0" />
  <RDF:Seq RDF:about="urn:mozilla:theme:root">
    <RDF:li RDF:resource="urn:mozilla:theme:{972ce4c6-7e08-4474-a285-3208198ce6fd}"/>
  </RDF:Seq>
</RDF:RDF>
EOF
	echo "theme,{972ce4c6-7e08-4474-a285-3208198ce6fd}" > $startdir/pkg/usr/lib/kompozer/extensions/installed-extensions-processed.txt

	# build
	./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --disable-static \
		--enable-optimize="${CFLAGS}" --enable-application=composer \
		--disable-debug \
		--disable-profilesharing \
		--disable-profilelocking \
		--enable-single-profile \
		--disable-svg \
		--without-system-mng \
		--without-system-png \
		--disable-ldap \
		--disable-mailnews \
		--disable-installer \
		--disable-activex \
		--disable-activex-scripting \
		--disable-tests \
		--disable-oji \
		--disable-necko-disk-cache \
		--enable-extensions=wallet,xml-rpc,xmlextras,pref,universalchardet,spellcheck \
		--enable-necko-protocols=http,ftp,file,jar,viewsource,res,data \
		--disable-pedantic \
		--disable-short-wchar \
		--disable-xprint \
		--enable-strip-libs \
		--enable-crypto \
		--disable-mathml \
		--with-system-zlib \
		--enable-toolkit=gtk2 \
		--enable-default-toolkit=gtk2 \
		--enable-xft \
		--disable-freetype2 \
		--enable-image-decoders=default,-xbm || return 1
	make -j3 || return 1
	make DESTDIR=$startdir/pkg install || return 1

	# change the default browser
	sed -i 's°Debian-sensible\ browser\ by\ default°XFCE-sensible\ browser\ by\ default°g' $startdir/pkg/usr/lib/kompozer/defaults/profile/all.js || return 1
	sed -i 's°"/usr/bin/x-www-browser"°"/usr/bin/xfbrowser4"°g' $startdir/pkg/usr/lib/kompozer/defaults/profile/all.js || return 1
	sed -i 's°Debian-sensible\ browser\ by\ default°XFCE-sensible\ browser\ by\ default°g' $startdir/pkg/usr/lib/kompozer/defaults/pref/all.js || return 1
	sed -i 's°"/usr/bin/x-www-browser"°"/usr/bin/xfbrowser4"°g' $startdir/pkg/usr/lib/kompozer/defaults/pref/all.js || return 1
}
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)

munichjohn
Posts: 2
Joined: 18. Aug 2010, 03:46

Re: Kompozer

Post by munichjohn » 18. Aug 2010, 18:27

Thanks, clearly not for the faint-hearted! It will be a week or so before I can try this out, but I will. JohnS....

User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Kompozer

Post by thenktor » 18. Aug 2010, 22:54

This SLKBUILD is not what a newcomer wants to deal with. It looks quite messy and full of hacks. But of course you can use google find out what the build failure is.
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)

User avatar
lmello
Posts: 218
Joined: 4. Aug 2010, 17:38
Location: Brazil
Contact:

Re: Kompozer

Post by lmello » 19. Aug 2010, 17:18

Seamonkey's web-authoring component is pretty much the same thing as Kompozer, isn't it?

User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Kompozer

Post by thenktor » 20. Aug 2010, 13:33

IIRC Kompozer has some extra features.
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)

toothandnail
Posts: 165
Joined: 20. Sep 2009, 17:30
Location: Oxfordshire, UK

Re: Kompozer

Post by toothandnail » 30. Aug 2010, 07:27

thenktor wrote:IIRC Kompozer has some extra features.
:shock: From the last time I used it, mainly an ability to segfault and take all your work with it....

:) Personally I prefer Medit, or Bluefish. The code produced by either Seamonkey or Kompozer is pretty messy.

Paul.

User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Kompozer

Post by thenktor » 30. Aug 2010, 07:54

toothandnail wrote:Personally I prefer Medit, or Bluefish. The code produced by either Seamonkey or Kompozer is pretty messy.
You cannot compare a WYSIWYG Editor with a code editor.
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)

ToranK
Posts: 7
Joined: 6. Sep 2010, 15:03

Re: Kompozer

Post by ToranK » 6. Sep 2010, 15:16

Adding Kompozer would indeed turn Salix OS into a great system for me. Kompozer is what I use for my sites.

Post Reply