wok view firefox-official-pt-BR/receipt @ rev 25444

Up firefox-official (104.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Sep 04 18:56:05 2022 +0000 (20 months ago)
parents 5b79596c5d14
children fdf4e6f54d4f
line source
1 # SliTaz package receipt.
3 PACKAGE="firefox-official-pt-BR"
4 lang="pt-BR"
5 VERSION="104.0"
6 CATEGORY="network"
7 TAGS="web-browser"
8 SHORT_DESC="Official Firefox build by the Mozilla foundation (Portuguese (Brazil) language)."
9 MAINTAINER="al.bobylev@gmail.com"
10 LICENSE="MPL2"
11 WEB_SITE="https://www.mozilla.org/firefox"
13 TARBALL="$PACKAGE-$VERSION.tar.bz2"
14 WGET_URL="https://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-i686/$lang/firefox-$VERSION.tar.bz2"
16 PROVIDE="firefox-official browser-html5"
17 SUGGESTED="vlc"
18 DEPENDS="alsa-lib dbus-glib gtk+ gtk+3 libatomic xorg-libXt libwrap"
20 CONFIG_FILES="/opt/mozilla/firefox/distribution/policies.json"
22 HOST_ARCH="i486"
24 # What is the latest version available today?
25 current_version()
26 {
27 wget -O - http://ftp.mozilla.org/pub/firefox/releases/ 2>/dev/null | \
28 sed '/releases\/[0-9]/!d;s|.*releases/||;s|/.*||' | sort -Vr | sed q
29 }
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 # Installation path
35 fx='/opt/mozilla/firefox'
37 mkdir -p $install$fx/distribution
38 mkdir -p $install/usr/bin
39 mkdir -p $install/usr/share/applications
40 mkdir -p $install/usr/share/icons/hicolor/128x128/apps
42 # Copy everything
43 cp -a $src/* $install$fx
45 # Executable
46 ln -s $fx/firefox $install/usr/bin/firefox-official
48 # Icons
49 ln -s $fx/browser/icons/mozicon128.png \
50 $install/usr/share/icons/hicolor/128x128/apps/firefox-official.png
51 for size in 16 32 48
52 do
53 icon_folder="$install/usr/share/icons/hicolor/${size}x$size/apps"
54 mkdir -p $icon_folder
55 ln -s $fx/browser/chrome/icons/default/default$size.png \
56 $icon_folder/firefox-official.png
57 done
59 # Allow user updates (save user's and our traffic)
60 # chmod -R a+w $install$fx
61 # Inhibit unprivileged user from updating,
62 # because 104.0 is the last 32 bit version
64 # Desktop shortcut
65 cp $WOK/firefox-official/stuff/firefox-official.desktop \
66 $install/usr/share/applications
68 # Disable update
69 cp $WOK/firefox-official/stuff/policies.json \
70 $install$fx/distribution
71 }
73 # Rules to gen a SliTaz package suitable for Tazpkg.
74 genpkg_rules()
75 {
76 cp -a $install/* $fs
77 ln -s firefox-official $fs/usr/bin/browser-html5
78 }