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

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 10 18:04:02 2022 +0000 (2022-02-10)
parents c636d36601ac
children 453c249b6219
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
pankso@45 29 compile_rules()
pankso@45 30 {
domcox@14210 31 # load mozconfig
domcox@14210 32 cp -a $stuff/mozconfig $src
slaxemulator@11324 33
domcox@14210 34 # build firefox and create a firefox tarball
domcox@14210 35 # reducing log size: hide c++, nsinstall, python msgs
domcox@14210 36 # Exception... Component returned failure code: known bug #696763
domcox@14210 37 make -f client.mk | egrep -v "c++|nsinstall|python" &&
domcox@14210 38 make -C obj-firefox/browser/installer
slaxemulator@11324 39
domcox@14210 40 # install
domcox@14210 41 # locate tarball
domcox@14210 42 local tarball tarpath fn1 fn2
domcox@14210 43 tarpath=$src/obj-firefox/dist
domcox@14210 44 fn1="$tarpath/firefox-${VERSION%esr}.en-US.linux-$ARCH.tar.bz2"
pascal@20254 45 fn2="$tarpath/firefox-${VERSION%esr}.en-US.linux-i686.tar.bz2"
domcox@14210 46 [ -e "$fn1" ] && tarball="$fn1" && echo "$ARCH tarball found"
pascal@20255 47 [ -e "$fn2" ] && tarball="$fn2" && echo "i686 tarball found"
domcox@14210 48 [ -z "$tarball" ] && echo "ERROR: tarball not found" && exit 1
domcox@14210 49 # extract tarball
domcox@14210 50 mkdir -p $install/usr/lib/firefox-$VERSION &&
domcox@14210 51 tar -xvf $tarball -C $install/usr/lib/firefox-$VERSION \
domcox@14210 52 --strip-components=1 &&
domcox@14210 53 chown -R -v root:root $install/usr/lib/firefox-$VERSION &&
domcox@14210 54 chmod -v 755 $install/usr/lib/firefox-$VERSION/libxpcom.so &&
domcox@14210 55 # install symlink in /usr/bin
domcox@14210 56 mkdir -p $install/usr/bin &&
domcox@14210 57 ln -sf ../lib/firefox-$VERSION/firefox $install/usr/bin &&
domcox@14210 58 # install symlink for plugins
domcox@14210 59 mkdir -p $install/usr/lib/mozilla/plugins &&
domcox@14210 60 ln -sf ../mozilla/plugins $install/usr/lib/firefox-$VERSION
pankso@45 61 }
pankso@45 62
pankso@45 63 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@45 64 genpkg_rules()
pankso@45 65 {
domcox@14210 66 # program
domcox@14210 67 printf "Installing program.."
domcox@14210 68 mkdir -p $fs/usr/lib &&
domcox@14210 69 cp -a $install/usr/lib/$PACKAGE-$VERSION $fs/usr/lib &&
domcox@14210 70 cp -a $install/usr/lib/mozilla $fs/usr/lib &&
pascal@13796 71 cp -a $install/usr/bin $fs/usr
domcox@14210 72 status
pankso@45 73
domcox@14210 74 # search Plugin (by: oddball)
domcox@14210 75 printf "Installing SliTaz search plugins.."
domcox@14210 76 cp -a $stuff/searchplugins $fs/usr/lib/$PACKAGE-$VERSION
domcox@14210 77 status
pankso@45 78
domcox@14210 79 # prefs
domcox@14210 80 printf "Installing SliTaz preferences.."
domcox@14210 81 mkdir -p $fs/usr/lib/$PACKAGE-$VERSION/distribution &&
domcox@14210 82 cp -a $stuff/distribution.ini $fs/usr/lib/$PACKAGE-$VERSION/distribution
domcox@14210 83 status
slaxemulator@9382 84
domcox@14210 85 # mozilla-common files
domcox@14210 86 # dictionaries
domcox@14210 87 printf "Installing common dictionnaries.."
domcox@14210 88 rm -rf $fs/usr/lib/$PACKAGE-$VERSION/dictionaries &&
domcox@14210 89 ln -sf ../mozilla-common-$VERSION/dictionaries \
domcox@14210 90 $fs/usr/lib/$PACKAGE-$VERSION/dictionaries
domcox@14210 91 status
domcox@14210 92 # plugin-container
domcox@14210 93 printf "Installing common plugin-container"
domcox@14210 94 rm -f $fs/usr/lib/$PACKAGE-$VERSION/plugin-container &&
domcox@14210 95 ln -sf ../mozilla-common-$VERSION/plugin-container \
domcox@14210 96 $fs/usr/lib/$PACKAGE-$VERSION/plugin-container
domcox@14210 97 status
domcox@14210 98 # mozilla-xremote-client
domcox@14210 99 printf "Installing common mozilla-xremote-client"
domcox@14210 100 rm -f $fs/usr/lib/$PACKAGE-$VERSION/mozilla-xremote-client &&
domcox@14210 101 ln -sf ../mozilla-common-$VERSION/mozilla-xremote-client \
domcox@14210 102 $fs/usr/lib/$PACKAGE-$VERSION/mozilla-xremote-client
domcox@14210 103 status
domcox@14210 104 # components/libdbusservice.so
domcox@14210 105 # components/libmozgnome.so
domcox@14210 106 for file in libdbusservice.so libmozgnome.so; do
domcox@14210 107 printf "Installing common components/$file"
domcox@14210 108 rm -f $fs/usr/lib/$PACKAGE-$VERSION/components/$file &&
domcox@14210 109 ln -sf ../../mozilla-common-$VERSION/components/$file \
domcox@14210 110 $fs/usr/lib/$PACKAGE-$VERSION/components/$file
domcox@14210 111 status
domcox@14210 112 done
domcox@14210 113 # chrome.manifest
domcox@14210 114 printf "Installing common chrome.manifest"
domcox@14210 115 rm -f $fs/usr/lib/$PACKAGE-$VERSION/chrome.manifest &&
domcox@14210 116 ln -sf ../mozilla-common-$VERSION/chrome.manifest \
domcox@14210 117 $fs/usr/lib/$PACKAGE-$VERSION/chrome.manifest
domcox@14210 118 status
slaxemulator@9382 119
domcox@14210 120 # run-mozilla.sh
domcox@14210 121 printf "Installing common run-mozilla.sh"
domcox@14210 122 rm -f $fs/usr/lib/$PACKAGE-$VERSION/run-mozilla.sh &&
domcox@14210 123 ln -sf ../mozilla-common-$VERSION/run-mozilla.sh \
domcox@14210 124 $fs/usr/lib/$PACKAGE-$VERSION/run-mozilla.sh
domcox@14210 125 status
slaxemulator@11324 126
domcox@14210 127 # libmozalloc.so
domcox@14210 128 printf "Installing common libmozalloc.so"
domcox@14210 129 rm -f $fs/usr/lib/$PACKAGE-$VERSION/libmozalloc.so &&
domcox@14210 130 ln -sf ../mozilla-common-$VERSION/libmozalloc.so \
domcox@14210 131 $fs/usr/lib/$PACKAGE-$VERSION/libmozalloc.so
domcox@14210 132 status
pankso@3818 133
pankso@629 134 chown -R root.root $fs
pankso@45 135 }