wok-current view seamonkey/receipt @ rev 9155
firmware: fix SOURCE
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 07 13:02:30 2011 +0100 (2011-03-07) |
parents | 940b5937e496 |
children | a9de629ffc95 |
line source
1 # SliTaz package receipt.
3 PACKAGE="seamonkey"
4 VERSION="2.0.12"
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="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 >> mozilla/layout/build/Makefile.in << "EOF"
23 ifdef MOZ_ENABLE_CANVAS
24 EXTRA_DSO_LDOPTS += $(XLDFLAGS) -lX11 -lXrender
25 endif
26 EOF
27 unset CFLAGS
28 unset CXXFLAGS
30 export LDFLAGS="-Wl,-rpath,/usr/lib/seamonkey-$VERSION"
31 make -j1 -f client.mk build MOZ_MAKE_FLAGS="${MAKEFLAGS}"
32 make -j1 -f client.mk DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/bin $fs/usr/lib $fs/etc
39 cp -a $_pkg/usr/bin/seamonkey $fs/usr/bin
40 cp -a $_pkg/usr/lib/seamonkey-* $fs/usr/lib
41 # Home page, bookmarks file and branding.
42 cp -a $stuff/bookmarks.html \
43 $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile
44 # User preference.
45 cp -a $stuff/userChrome.css \
46 $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile/chrome
47 # Move default config to /etc/seamonkey (/usr maybe read-only)
48 mv -f $fs/usr/lib/$PACKAGE-$VERSION/defaults $fs/etc/$PACKAGE
49 ln -s /etc/$PACKAGE $fs/usr/lib/$PACKAGE-$VERSION/defaults
50 # Remove unecessary file and set permissions.
51 rm -rf $fs/etc/seamonkey/profile/US
52 chown -R root.root $fs/etc
54 # Create default user preference file
55 cp $stuff/prefs.js $fs/etc/seamonkey/profile/prefs.js
57 }
59 clean_wok()
60 {
61 rm -rf build
62 }