wok-6.x annotate firefox/receipt @ rev 14210

Up: firefox (17.0.4esr)
author Dominique Corbex <domcox@slitaz.org>
date Sat Mar 16 21:28:06 2013 +0100 (2013-03-16)
parents 6b09507225ec
children f79ea815af04
rev   line source
pankso@45 1 # SliTaz package receipt.
pankso@45 2
pankso@45 3 PACKAGE="firefox"
domcox@14210 4 VERSION="17.0.4esr"
pankso@197 5 CATEGORY="network"
pankso@45 6 SHORT_DESC="User friendly, secure and fast web browser."
pankso@45 7 MAINTAINER="pankso@slitaz.org"
pankso@4079 8 TARBALL="$PACKAGE-$VERSION.source.tar.bz2"
domcox@14210 9 WEB_SITE="http://www.mozilla.org/firefox"
slaxemulator@11324 10 WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$VERSION/source/$TARBALL"
jozee@4936 11 TAGS="browser"
pankso@45 12
pankso@10737 13 DEPENDS="gtk+ sqlite dbus dbus-glib glib jpeg xorg-libX11 xorg-libXdamage \
domcox@14210 14 alsa-lib xorg-libXt libevent libvpx pango nss sqlite libfirefox \
domcox@14210 15 gstreamer gst-plugins-base"
slaxemulator@11324 16 BUILD_DEPENDS="zip libIDL coreutils findutils wireless_tools-dev \
pascal@12628 17 perl python yasm alsa-lib-dev mesa-dev libevent-dev libvpx-dev dbus-dev \
domcox@14210 18 dbus-glib-dev gtk+-dev glib-dev pango-dev nss-dev sqlite-dev tar gzip \
domcox@14210 19 gstreamer-dev gst-plugins-base-dev"
pankso@10737 20
pankso@45 21 # Rules to configure and make the package.
pankso@45 22 #
pankso@45 23 # A long compile time... dont forget to build libidl before and check the
pankso@45 24 # .mozconfig file from the stuff and the stuff/README document.
pankso@45 25 #
domcox@14210 26 # WARNING: 1GB RAM minimum. Additional RAM will significantly decrease
domcox@14210 27 # build time.
domcox@14210 28 # At least 2.5 GB free disk space
domcox@14210 29
pankso@45 30 compile_rules()
pankso@45 31 {
pankso@45 32 cd $src
domcox@14210 33 # load mozconfig
domcox@14210 34 cp -a $stuff/mozconfig $src
slaxemulator@11324 35
domcox@14210 36 # build firefox and create a firefox tarball
domcox@14210 37 # reducing log size: hide c++, nsinstall, python msgs
domcox@14210 38 # Exception... Component returned failure code: known bug #696763
domcox@14210 39 make -f client.mk | egrep -v "c++|nsinstall|python" &&
domcox@14210 40 make -C obj-firefox/browser/installer
slaxemulator@11324 41
domcox@14210 42 # install
domcox@14210 43 # locate tarball
domcox@14210 44 local tarball tarpath fn1 fn2
domcox@14210 45 tarpath=$src/obj-firefox/dist
domcox@14210 46 fn1="$tarpath/firefox-${VERSION%esr}.en-US.linux-$ARCH.tar.bz2"
domcox@14210 47 fn2="$tarpath/firefox-${VERSION%esr}.en-US.linux-$(uname -m).tar.bz2"
domcox@14210 48 [ -e "$fn1" ] && tarball="$fn1" && echo "$ARCH tarball found"
domcox@14210 49 [ -e "$fn2" ] && tarball="$fn2" && echo "$(uname -m) tarball found"
domcox@14210 50 [ -z "$tarball" ] && echo "ERROR: tarball not found" && exit 1
domcox@14210 51 # extract tarball
domcox@14210 52 mkdir -p $install/usr/lib/firefox-$VERSION &&
domcox@14210 53 tar -xvf $tarball -C $install/usr/lib/firefox-$VERSION \
domcox@14210 54 --strip-components=1 &&
domcox@14210 55 chown -R -v root:root $install/usr/lib/firefox-$VERSION &&
domcox@14210 56 chmod -v 755 $install/usr/lib/firefox-$VERSION/libxpcom.so &&
domcox@14210 57 # install symlink in /usr/bin
domcox@14210 58 mkdir -p $install/usr/bin &&
domcox@14210 59 ln -sf ../lib/firefox-$VERSION/firefox $install/usr/bin &&
domcox@14210 60 # install symlink for plugins
domcox@14210 61 mkdir -p $install/usr/lib/mozilla/plugins &&
domcox@14210 62 ln -sf ../mozilla/plugins $install/usr/lib/firefox-$VERSION
pankso@45 63 }
pankso@45 64
pankso@45 65 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@45 66 genpkg_rules()
pankso@45 67 {
domcox@14210 68 # program
domcox@14210 69 printf "Installing program.."
domcox@14210 70 mkdir -p $fs/usr/lib &&
domcox@14210 71 cp -a $install/usr/lib/$PACKAGE-$VERSION $fs/usr/lib &&
domcox@14210 72 cp -a $install/usr/lib/mozilla $fs/usr/lib &&
pascal@13796 73 cp -a $install/usr/bin $fs/usr
domcox@14210 74 status
pankso@45 75
domcox@14210 76 # search Plugin (by: oddball)
domcox@14210 77 printf "Installing SliTaz search plugins.."
domcox@14210 78 cp -a $stuff/searchplugins $fs/usr/lib/$PACKAGE-$VERSION
domcox@14210 79 status
pankso@45 80
domcox@14210 81 # prefs
domcox@14210 82 printf "Installing SliTaz preferences.."
domcox@14210 83 mkdir -p $fs/usr/lib/$PACKAGE-$VERSION/distribution &&
domcox@14210 84 cp -a $stuff/distribution.ini $fs/usr/lib/$PACKAGE-$VERSION/distribution
domcox@14210 85 status
slaxemulator@9382 86
domcox@14210 87 # mozilla-common files
domcox@14210 88 # dictionaries
domcox@14210 89 printf "Installing common dictionnaries.."
domcox@14210 90 rm -rf $fs/usr/lib/$PACKAGE-$VERSION/dictionaries &&
domcox@14210 91 ln -sf ../mozilla-common-$VERSION/dictionaries \
domcox@14210 92 $fs/usr/lib/$PACKAGE-$VERSION/dictionaries
domcox@14210 93 status
domcox@14210 94 # plugin-container
domcox@14210 95 printf "Installing common plugin-container"
domcox@14210 96 rm -f $fs/usr/lib/$PACKAGE-$VERSION/plugin-container &&
domcox@14210 97 ln -sf ../mozilla-common-$VERSION/plugin-container \
domcox@14210 98 $fs/usr/lib/$PACKAGE-$VERSION/plugin-container
domcox@14210 99 status
domcox@14210 100 # mozilla-xremote-client
domcox@14210 101 printf "Installing common mozilla-xremote-client"
domcox@14210 102 rm -f $fs/usr/lib/$PACKAGE-$VERSION/mozilla-xremote-client &&
domcox@14210 103 ln -sf ../mozilla-common-$VERSION/mozilla-xremote-client \
domcox@14210 104 $fs/usr/lib/$PACKAGE-$VERSION/mozilla-xremote-client
domcox@14210 105 status
domcox@14210 106 # components/libdbusservice.so
domcox@14210 107 # components/libmozgnome.so
domcox@14210 108 for file in libdbusservice.so libmozgnome.so; do
domcox@14210 109 printf "Installing common components/$file"
domcox@14210 110 rm -f $fs/usr/lib/$PACKAGE-$VERSION/components/$file &&
domcox@14210 111 ln -sf ../../mozilla-common-$VERSION/components/$file \
domcox@14210 112 $fs/usr/lib/$PACKAGE-$VERSION/components/$file
domcox@14210 113 status
domcox@14210 114 done
domcox@14210 115 # chrome.manifest
domcox@14210 116 printf "Installing common chrome.manifest"
domcox@14210 117 rm -f $fs/usr/lib/$PACKAGE-$VERSION/chrome.manifest &&
domcox@14210 118 ln -sf ../mozilla-common-$VERSION/chrome.manifest \
domcox@14210 119 $fs/usr/lib/$PACKAGE-$VERSION/chrome.manifest
domcox@14210 120 status
slaxemulator@9382 121
domcox@14210 122 # run-mozilla.sh
domcox@14210 123 printf "Installing common run-mozilla.sh"
domcox@14210 124 rm -f $fs/usr/lib/$PACKAGE-$VERSION/run-mozilla.sh &&
domcox@14210 125 ln -sf ../mozilla-common-$VERSION/run-mozilla.sh \
domcox@14210 126 $fs/usr/lib/$PACKAGE-$VERSION/run-mozilla.sh
domcox@14210 127 status
slaxemulator@11324 128
domcox@14210 129 # libmozalloc.so
domcox@14210 130 printf "Installing common libmozalloc.so"
domcox@14210 131 rm -f $fs/usr/lib/$PACKAGE-$VERSION/libmozalloc.so &&
domcox@14210 132 ln -sf ../mozilla-common-$VERSION/libmozalloc.so \
domcox@14210 133 $fs/usr/lib/$PACKAGE-$VERSION/libmozalloc.so
domcox@14210 134 status
pankso@3818 135
pankso@629 136 chown -R root.root $fs
pankso@45 137 }