wok-current view seamonkey/receipt @ rev 6926

Up: git to 1.7.3.2.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Oct 22 17:13:31 2010 +0000 (2010-10-22)
parents 1796f1b2c7d2
children a65d87676001
line source
1 # SliTaz package receipt.
3 PACKAGE="seamonkey"
4 VERSION="2.0.9"
5 CATEGORY="network"
6 SHORT_DESC="Seamonkey suite (browser, mail, news reader)."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.source.tar.bz2"
9 DEPENDS="gtk+ glib jpeg xorg-libX11 libIDL alsa-lib xorg-libXt GConf curl"
10 BUILD_DEPENDS="xorg-dev gtk+-dev zip libIDL coreutils xorg-libXft-dev perl alsa-lib alsa-lib-dev findutils python python-dev curl-dev"
11 WEB_SITE="http://www.seamonkey-project.org/"
12 WGET_URL="http://releases.mozilla.org/pub/mozilla.org/seamonkey/releases/$VERSION/source/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 #mv mozilla $PACKAGE-$VERSION 2>/dev/null || exit 1
18 mv comm-1.9.1 $PACKAGE-$VERSION 2>/dev/null
19 cp -a stuff/seamonkey.mozconfig $src/.mozconfig
20 cd $src
21 patch -p1 -i ../stuff/google-breakpad.u || exit 1
22 cat >> layout/build/Makefile.in << "EOF"
23 ifdef MOZ_ENABLE_CANVAS
24 EXTRA_DSO_LDOPTS += $(XLDFLAGS) -lX11 -lXrender
25 endif
26 EOF
27 make -j 4 -f client.mk build
28 make -f client.mk DESTDIR=$PWD/_pkg install
30 # French suport
31 tar xvzf ../stuff/seamonkey-2.0.2.fr.langpack.tar.gz
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/bin $fs/usr/lib $fs/etc
38 cp -a $_pkg/usr/bin/seamonkey $fs/usr/bin
39 cp -a $_pkg/usr/lib/seamonkey-* $fs/usr/lib
40 # Home page, bookmarks file and branding.
41 cp -a stuff/bookmarks.html \
42 $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile
43 # User preference.
44 cp -a stuff/userChrome.css \
45 $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile/chrome
46 # Move default config to /etc/seamonkey (/usr maybe read-only)
47 mv -f $fs/usr/lib/$PACKAGE-$VERSION/defaults $fs/etc/$PACKAGE
48 ln -s /etc/$PACKAGE $fs/usr/lib/$PACKAGE-$VERSION/defaults
49 # Remove unecessary file and set permissions.
50 rm -rf $fs/etc/seamonkey/profile/US
51 chown -R root.root $fs/etc
53 # Add french langpack
54 mkdir $fs/usr/lib/$PACKAGE-$VERSION/extensions/langpack-fr@seamonkey.mozilla.org
55 cp -pa $src/seamonkey-2.0.2.fr.langpack/* \
56 $fs/usr/lib/$PACKAGE-$VERSION/extensions/langpack-fr@seamonkey.mozilla.org
57 # Create default user preference file
58 cp stuff/prefs.js $fs/etc/seamonkey/profile/prefs.js
60 }
62 clean_wok()
63 {
64 rm -rf build
65 }