wok view seamonkey/receipt @ rev 14083
Up: emacs-help (24.2)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Fri Feb 22 20:43:45 2013 +0100 (2013-02-22) |
parents | e96d7a70e1ed |
children | 91b3a604646b |
line source
1 # SliTaz package receipt.
3 PACKAGE="seamonkey"
4 VERSION="2.7.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 WEB_SITE="http://www.seamonkey-project.org/"
10 WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/$VERSION/source/$TARBALL"
12 DEPENDS="gtk+ glib jpeg xorg-libX11 libIDL alsa-lib xorg-libXt curl libnotify \
13 libevent libvpx"
14 BUILD_DEPENDS="gtk+-dev zip libIDL coreutils xorg-libXft-dev libevent-dev \
15 libvpx-dev perl alsa-lib alsa-lib-dev findutils python python-dev \
16 wireless_tools-dev mesa-dev yasm libnotify-dev curl-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cp -a $stuff/seamonkey.mozconfig $src/.mozconfig
22 cd $src
23 sed -i -e 's/USE_INPUT_PARTITION/USE_INPUT_FRAGMENTS/' \
24 -e 's/0.9.7/1.0.0/' mozilla/configure.in mozilla/configure
25 #patch -p1 -i $stuff/google-breakpad.u || exit 1
26 cat >> mozilla/layout/build/Makefile.in << "EOF"
27 ifdef MOZ_ENABLE_CANVAS
28 EXTRA_DSO_LDOPTS += $(XLDFLAGS) -lX11 -lXrender
29 endif
30 EOF
31 unset CFLAGS
32 unset CXXFLAGS
33 patch -Np1 -i $stuff/seamonkey-2.0-lang.patch
34 patch -Np1 -i $stuff/seamonkey-install-dir.patch
35 export LDFLAGS="-Wl,-rpath,/usr/lib/seamonkey"
36 ./configure $CONFIGURE_ARGS &&
37 make &&
38 make DESTDIR=$DESTDIR install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/bin $fs/usr/lib $fs/etc
45 cp -a $install/usr/bin/seamonkey $fs/usr/bin
46 cp -a $install/usr/lib/seamonkey $fs/usr/lib
47 # Home page, bookmarks file and branding.
48 cp -a $stuff/bookmarks.html \
49 $fs/usr/lib/$PACKAGE/defaults/profile
50 # User preference.
51 cp -a $stuff/userChrome.css \
52 $fs/usr/lib/$PACKAGE/defaults/profile/chrome
53 # Move default config to /etc/seamonkey (/usr maybe read-only)
54 mv -f $fs/usr/lib/$PACKAGE/defaults $fs/etc/$PACKAGE
55 ln -sf /etc/$PACKAGE $fs/usr/lib/$PACKAGE/defaults
56 # Remove unecessary file and set permissions.
57 rm -rf $fs/etc/seamonkey/profile/US
58 chown -R root.root $fs/etc
60 # Create default user preference file
61 cp $stuff/prefs.js $fs/etc/seamonkey/profile/prefs.js
62 }