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