wok annotate firefox/receipt @ rev 25091
updated paramiko (2.7.1 -> 2.11.0)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jun 18 09:52:25 2022 +0100 (2022-06-18) |
parents | 1ed1fa7d10cd |
children | 41a539cfe5f8 |
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" |
al@17501 | 12 TAGS="web-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 |
pascal@24425 | 29 # What is the latest version available today? |
pascal@24425 | 30 current_version() |
pascal@24425 | 31 { |
pascal@24425 | 32 wget -O - http://ftp.mozilla.org/pub/firefox/releases/ 2>/dev/null | \ |
pascal@24425 | 33 sed '/firefox\/releases\/[0-9]/!d;s|.*firefox/releases/\([^/]*\)/.*|\1|' | sort -Vr | sed q |
pascal@24425 | 34 } |
pascal@24425 | 35 |
pankso@45 | 36 compile_rules() |
pankso@45 | 37 { |
domcox@14210 | 38 # load mozconfig |
domcox@14210 | 39 cp -a $stuff/mozconfig $src |
slaxemulator@11324 | 40 |
domcox@14210 | 41 # build firefox and create a firefox tarball |
domcox@14210 | 42 # reducing log size: hide c++, nsinstall, python msgs |
domcox@14210 | 43 # Exception... Component returned failure code: known bug #696763 |
domcox@14210 | 44 make -f client.mk | egrep -v "c++|nsinstall|python" && |
domcox@14210 | 45 make -C obj-firefox/browser/installer |
slaxemulator@11324 | 46 |
domcox@14210 | 47 # install |
domcox@14210 | 48 # locate tarball |
domcox@14210 | 49 local tarball tarpath fn1 fn2 |
domcox@14210 | 50 tarpath=$src/obj-firefox/dist |
domcox@14210 | 51 fn1="$tarpath/firefox-${VERSION%esr}.en-US.linux-$ARCH.tar.bz2" |
pascal@20254 | 52 fn2="$tarpath/firefox-${VERSION%esr}.en-US.linux-i686.tar.bz2" |
domcox@14210 | 53 [ -e "$fn1" ] && tarball="$fn1" && echo "$ARCH tarball found" |
pascal@20255 | 54 [ -e "$fn2" ] && tarball="$fn2" && echo "i686 tarball found" |
domcox@14210 | 55 [ -z "$tarball" ] && echo "ERROR: tarball not found" && exit 1 |
domcox@14210 | 56 # extract tarball |
domcox@14210 | 57 mkdir -p $install/usr/lib/firefox-$VERSION && |
domcox@14210 | 58 tar -xvf $tarball -C $install/usr/lib/firefox-$VERSION \ |
domcox@14210 | 59 --strip-components=1 && |
domcox@14210 | 60 chown -R -v root:root $install/usr/lib/firefox-$VERSION && |
domcox@14210 | 61 chmod -v 755 $install/usr/lib/firefox-$VERSION/libxpcom.so && |
domcox@14210 | 62 # install symlink in /usr/bin |
domcox@14210 | 63 mkdir -p $install/usr/bin && |
domcox@14210 | 64 ln -sf ../lib/firefox-$VERSION/firefox $install/usr/bin && |
domcox@14210 | 65 # install symlink for plugins |
domcox@14210 | 66 mkdir -p $install/usr/lib/mozilla/plugins && |
domcox@14210 | 67 ln -sf ../mozilla/plugins $install/usr/lib/firefox-$VERSION |
pankso@45 | 68 } |
pankso@45 | 69 |
pankso@45 | 70 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@45 | 71 genpkg_rules() |
pankso@45 | 72 { |
domcox@14210 | 73 # program |
domcox@14210 | 74 printf "Installing program.." |
domcox@14210 | 75 mkdir -p $fs/usr/lib && |
domcox@14210 | 76 cp -a $install/usr/lib/$PACKAGE-$VERSION $fs/usr/lib && |
domcox@14210 | 77 cp -a $install/usr/lib/mozilla $fs/usr/lib && |
pascal@13796 | 78 cp -a $install/usr/bin $fs/usr |
domcox@14210 | 79 status |
pankso@45 | 80 |
domcox@14210 | 81 # search Plugin (by: oddball) |
domcox@14210 | 82 printf "Installing SliTaz search plugins.." |
domcox@14210 | 83 cp -a $stuff/searchplugins $fs/usr/lib/$PACKAGE-$VERSION |
domcox@14210 | 84 status |
pankso@45 | 85 |
domcox@14210 | 86 # prefs |
domcox@14210 | 87 printf "Installing SliTaz preferences.." |
domcox@14210 | 88 mkdir -p $fs/usr/lib/$PACKAGE-$VERSION/distribution && |
domcox@14210 | 89 cp -a $stuff/distribution.ini $fs/usr/lib/$PACKAGE-$VERSION/distribution |
domcox@14210 | 90 status |
slaxemulator@9382 | 91 |
domcox@14210 | 92 # mozilla-common files |
domcox@14210 | 93 # dictionaries |
domcox@14210 | 94 printf "Installing common dictionnaries.." |
domcox@14210 | 95 rm -rf $fs/usr/lib/$PACKAGE-$VERSION/dictionaries && |
domcox@14210 | 96 ln -sf ../mozilla-common-$VERSION/dictionaries \ |
domcox@14210 | 97 $fs/usr/lib/$PACKAGE-$VERSION/dictionaries |
domcox@14210 | 98 status |
domcox@14210 | 99 # plugin-container |
domcox@14210 | 100 printf "Installing common plugin-container" |
domcox@14210 | 101 rm -f $fs/usr/lib/$PACKAGE-$VERSION/plugin-container && |
domcox@14210 | 102 ln -sf ../mozilla-common-$VERSION/plugin-container \ |
domcox@14210 | 103 $fs/usr/lib/$PACKAGE-$VERSION/plugin-container |
domcox@14210 | 104 status |
domcox@14210 | 105 # mozilla-xremote-client |
domcox@14210 | 106 printf "Installing common mozilla-xremote-client" |
domcox@14210 | 107 rm -f $fs/usr/lib/$PACKAGE-$VERSION/mozilla-xremote-client && |
domcox@14210 | 108 ln -sf ../mozilla-common-$VERSION/mozilla-xremote-client \ |
domcox@14210 | 109 $fs/usr/lib/$PACKAGE-$VERSION/mozilla-xremote-client |
domcox@14210 | 110 status |
domcox@14210 | 111 # components/libdbusservice.so |
domcox@14210 | 112 # components/libmozgnome.so |
domcox@14210 | 113 for file in libdbusservice.so libmozgnome.so; do |
domcox@14210 | 114 printf "Installing common components/$file" |
domcox@14210 | 115 rm -f $fs/usr/lib/$PACKAGE-$VERSION/components/$file && |
domcox@14210 | 116 ln -sf ../../mozilla-common-$VERSION/components/$file \ |
domcox@14210 | 117 $fs/usr/lib/$PACKAGE-$VERSION/components/$file |
domcox@14210 | 118 status |
domcox@14210 | 119 done |
domcox@14210 | 120 # chrome.manifest |
domcox@14210 | 121 printf "Installing common chrome.manifest" |
domcox@14210 | 122 rm -f $fs/usr/lib/$PACKAGE-$VERSION/chrome.manifest && |
domcox@14210 | 123 ln -sf ../mozilla-common-$VERSION/chrome.manifest \ |
domcox@14210 | 124 $fs/usr/lib/$PACKAGE-$VERSION/chrome.manifest |
domcox@14210 | 125 status |
slaxemulator@9382 | 126 |
domcox@14210 | 127 # run-mozilla.sh |
domcox@14210 | 128 printf "Installing common run-mozilla.sh" |
domcox@14210 | 129 rm -f $fs/usr/lib/$PACKAGE-$VERSION/run-mozilla.sh && |
domcox@14210 | 130 ln -sf ../mozilla-common-$VERSION/run-mozilla.sh \ |
domcox@14210 | 131 $fs/usr/lib/$PACKAGE-$VERSION/run-mozilla.sh |
domcox@14210 | 132 status |
slaxemulator@11324 | 133 |
domcox@14210 | 134 # libmozalloc.so |
domcox@14210 | 135 printf "Installing common libmozalloc.so" |
domcox@14210 | 136 rm -f $fs/usr/lib/$PACKAGE-$VERSION/libmozalloc.so && |
domcox@14210 | 137 ln -sf ../mozilla-common-$VERSION/libmozalloc.so \ |
domcox@14210 | 138 $fs/usr/lib/$PACKAGE-$VERSION/libmozalloc.so |
domcox@14210 | 139 status |
pankso@3818 | 140 |
pankso@629 | 141 chown -R root.root $fs |
pankso@45 | 142 } |