wok-6.x view seamonkey/receipt @ rev 10524
openvas-scanner: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 25 16:21:23 2011 +0200 (2011-05-25) |
parents | a9de629ffc95 |
children | 7bae315c3aac |
line source
1 # SliTaz package receipt.
3 PACKAGE="seamonkey"
4 VERSION="2.0.14"
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 cp -a $stuff/seamonkey.mozconfig $src/.mozconfig
18 cd $src
19 #patch -p1 -i $stuff/google-breakpad.u || exit 1
20 cat >> mozilla/layout/build/Makefile.in << "EOF"
21 ifdef MOZ_ENABLE_CANVAS
22 EXTRA_DSO_LDOPTS += $(XLDFLAGS) -lX11 -lXrender
23 endif
24 EOF
25 unset CFLAGS
26 unset CXXFLAGS
28 export LDFLAGS="-Wl,-rpath,/usr/lib/seamonkey-$VERSION"
29 make -j1 -f client.mk build MOZ_MAKE_FLAGS="${MAKEFLAGS}"
30 make -j1 -f client.mk DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/bin $fs/usr/lib $fs/etc
37 cp -a $_pkg/usr/bin/seamonkey $fs/usr/bin
38 cp -a $_pkg/usr/lib/seamonkey-* $fs/usr/lib
39 # Home page, bookmarks file and branding.
40 cp -a $stuff/bookmarks.html \
41 $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile
42 # User preference.
43 cp -a $stuff/userChrome.css \
44 $fs/usr/lib/$PACKAGE-$VERSION/defaults/profile/chrome
45 # Move default config to /etc/seamonkey (/usr maybe read-only)
46 mv -f $fs/usr/lib/$PACKAGE-$VERSION/defaults $fs/etc/$PACKAGE
47 ln -s /etc/$PACKAGE $fs/usr/lib/$PACKAGE-$VERSION/defaults
48 # Remove unecessary file and set permissions.
49 rm -rf $fs/etc/seamonkey/profile/US
50 chown -R root.root $fs/etc
52 # Create default user preference file
53 cp $stuff/prefs.js $fs/etc/seamonkey/profile/prefs.js
55 }