wok-stable diff seamonkey/receipt @ rev 2747

Add Seamonkey web suite
author Christophe Lincoln <pankso@slitaz.org>
date Sun Apr 26 00:43:36 2009 +0200 (2009-04-26)
parents
children 7655d57def07
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/seamonkey/receipt	Sun Apr 26 00:43:36 2009 +0200
     1.3 @@ -0,0 +1,52 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="seamonkey"
     1.7 +VERSION="1.1.16"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="Seamonkey suite (browser, mail, news reader)."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +TARBALL="$PACKAGE-$VERSION.source.tar.bz2"
    1.12 +DEPENDS="gtk+ glib jpeg xorg-libX11"
    1.13 +BUILD_DEPENDS="xorg-dev gtk+-dev zip libIDL coreutils findutils xorg-libXft-dev"
    1.14 +WEB_SITE="http://www.seamonkey-project.org/"
    1.15 +WGET_URL="http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/$VERSION/$TARBALL"
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{
    1.20 +	mv mozilla $PACKAGE-$VERSION 2>/dev/null
    1.21 +	cp -a stuff/seamonkey.mozconfig $src/.mozconfig
    1.22 +	cd $src
    1.23 +	cat >> layout/build/Makefile.in << "EOF"
    1.24 +ifdef MOZ_ENABLE_CANVAS
    1.25 +EXTRA_DSO_LDOPTS += $(XLDFLAGS) -lX11 -lXrender
    1.26 +endif
    1.27 +EOF
    1.28 +	make -f client.mk build
    1.29 +	make -f client.mk DESTDIR=$PWD/_pkg install
    1.30 +}
    1.31 +
    1.32 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.33 +genpkg_rules()
    1.34 +{
    1.35 +	mkdir -p $fs/usr/bin $fs/usr/lib $fs/etc
    1.36 +	cp -a $_pkg/usr/bin/seamonkey $fs/usr/bin
    1.37 +	cp -a $_pkg/usr/lib/seamonkey-* $fs/usr/lib
    1.38 +	# Home page, bookmarks file and branding.
    1.39 +	cp -a stuff/bookmarks.html \
    1.40 +		$fs/usr/lib/$PACKAGE-$VERSION/defaults/profile
    1.41 +	# User preference.
    1.42 +	cp -a stuff/userChrome.css \
    1.43 +		$fs/usr/lib/$PACKAGE-$VERSION/defaults/profile/chrome
    1.44 +	# Move default config to /etc/seamonkey (/usr maybe read-only)
    1.45 +	mv -f $fs/usr/lib/$PACKAGE-$VERSION/defaults $fs/etc/$PACKAGE
    1.46 +	ln -s /etc/$PACKAGE $fs/usr/lib/$PACKAGE-$VERSION/defaults
    1.47 +	# Remove unecessary file and set permissions.
    1.48 +	rm -rf $fs/etc/seamonkey/profile/US
    1.49 +	chown -R root.root $fs/etc
    1.50 +}
    1.51 +
    1.52 +clean_wok()
    1.53 +{
    1.54 +	rm -rf build
    1.55 +}