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