wok view firefox-official/receipt @ rev 24441

firefox-official*: prohibit user update
author Hans-G?nter Theisgen
date Mon Feb 14 07:01:08 2022 +0100 (2022-02-14)
parents b78e79c31b1f
children 5b79596c5d14
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="http://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"
18 HOST_ARCH="i486"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - http://ftp.mozilla.org/pub/firefox/releases/ 2>/dev/null | \
24 sed '/releases\/[0-9]/!d;s|.*releases/||;s|/.*||' | sort -Vr | sed q
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 # Installation path
31 fx='/opt/mozilla/firefox'
33 mkdir -p $install$fx
34 mkdir -p $install/usr/bin
35 mkdir -p $install/usr/share/applications
36 mkdir -p $install/usr/share/icons/hicolor/128x128/apps
38 # Copy everything
39 cp -a $src/* $install$fx
41 # Executable
42 ln -s $fx/firefox $install/usr/bin/firefox-official
44 # Icons
45 ln -s $fx/browser/icons/mozicon128.png \
46 $install/usr/share/icons/hicolor/128x128/apps/firefox-official.png
47 for size in 16 32 48
48 do
49 icon_folder="$install/usr/share/icons/hicolor/${size}x$size/apps"
50 mkdir -p $icon_folder
51 ln -s $fx/browser/chrome/icons/default/default$size.png \
52 $icon_folder/firefox-official.png
53 done
55 # Allow user updates (save user's and our traffic)
56 # chmod -R a+w $install$fx
57 # Inhibit unprivileged user from updating,
58 # because 77.0 is the last 32 bit version
60 # Desktop shortcut
61 cp $stuff/firefox-official.desktop \
62 $install/usr/share/applications
63 cp $stuff/firefox-official-private.desktop \
64 $install/usr/share/applications
65 cp $stuff/firefox-official-safe.desktop \
66 $install/usr/share/applications
67 }
69 # Rules to gen a SliTaz package suitable for Tazpkg.
70 genpkg_rules()
71 {
72 cp -a $install/* $fs
73 ln -s firefox-official $fs/usr/bin/browser-html5
74 }