wok view seamonkey/receipt @ rev 4844
apache-mod-perl: Update BUILD_DEPENDS.
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Fri Jan 29 17:00:59 2010 +0100 (2010-01-29) |
parents | 470c0f5d35c1 |
children | 4897058add72 |
line source
1 # SliTaz package receipt.
3 PACKAGE="seamonkey"
4 VERSION="2.0.2"
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"
10 BUILD_DEPENDS="xorg-dev gtk+-dev zip libIDL coreutils xorg-libXft-dev perl alsa-lib-dev findutils"
11 WEB_SITE="http://www.seamonkey-project.org/"
12 WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/$VERSION/$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 -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/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 }