wok view firefox-official/receipt @ rev 25778

Up fdutils (5.6), lite (1.11), vlgothic-fonts (20230918)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 20 09:06:10 2024 +0000 (2 months ago)
parents eecd62c54525
children
line source
1 # SliTaz package receipt.
3 PACKAGE="firefox-official"
4 VERSION="77.0"
5 CATEGORY="network"
6 TAGS="web-browser"
7 SHORT_DESC="Official Firefox build by the Mozilla foundation (English language)."
8 MAINTAINER="al.bobylev@gmail.com"
9 LICENSE="MPL2"
10 WEB_SITE="https://www.mozilla.org/firefox"
12 TARBALL="firefox-$VERSION.tar.bz2"
13 WGET_URL="http://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-i686/en-US/$TARBALL"
15 PROVIDE="browser-html5"
16 SUGGESTED="vlc"
17 DEPENDS="alsa-lib dbus-glib gtk+ gtk+3 libatomic xorg-libXt libwrap"
19 CONFIG_FILES="/opt/mozilla/firefox/distribution/policies.json"
21 HOST_ARCH="i486"
23 # What is the latest version available today?
24 current_version()
25 {
26 wget -O - http://ftp.mozilla.org/pub/firefox/releases/ 2>/dev/null | \
27 sed '/releases\/[0-9]/!d;s|.*releases/||;s|/.*||' | sort -Vr | sed q
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 # Installation path
34 fx='/opt/mozilla/firefox'
36 mkdir -p $install$fx/distribution
37 mkdir -p $install/usr/bin
38 mkdir -p $install/usr/share/applications
39 mkdir -p $install/usr/share/icons/hicolor/128x128/apps
41 # Copy everything
42 cp -a $src/* $install$fx
44 # Executable
45 ln -s $fx/firefox $install/usr/bin/firefox-official
47 # Icons
48 ln -s $fx/browser/icons/mozicon128.png \
49 $install/usr/share/icons/hicolor/128x128/apps/firefox-official.png
50 for size in 16 32 48
51 do
52 icon_folder="$install/usr/share/icons/hicolor/${size}x$size/apps"
53 mkdir -p $icon_folder
54 ln -s $fx/browser/chrome/icons/default/default$size.png \
55 $icon_folder/firefox-official.png
56 done
58 # Allow user updates (save user's and our traffic)
59 # chmod -R a+w $install$fx
60 # Inhibit unprivileged user from updating,
61 # because 77.0 is the last version that works with glibc-2.14.1
63 # Desktop shortcut
64 cp $stuff/firefox-official.desktop \
65 $install/usr/share/applications
66 cp $stuff/firefox-official-private.desktop \
67 $install/usr/share/applications
68 cp $stuff/firefox-official-safe.desktop \
69 $install/usr/share/applications
71 # Disable update
72 cp $stuff/policies.json $install$fx/distribution
73 }
75 # Rules to gen a SliTaz package suitable for Tazpkg.
76 genpkg_rules()
77 {
78 cp -a $install/* $fs
79 ln -s firefox-official $fs/usr/bin/browser-html5
80 }