wok-6.x view firefox-official-ru/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-ru"
4 lang="ru"
5 VERSION="77.0"
6 CATEGORY="network"
7 TAGS="web-browser"
8 SHORT_DESC="Official Firefox build by the Mozilla foundation (Russian language)."
9 MAINTAINER="al.bobylev@gmail.com"
10 LICENSE="MPL2"
11 WEB_SITE="http://www.mozilla.org/firefox"
13 TARBALL="$PACKAGE-$VERSION.tar.bz2"
14 WGET_URL="http://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"
19 HOST_ARCH="i486"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - http://ftp.mozilla.org/pub/firefox/releases/ 2>/dev/null | \
25 sed '/releases\/[0-9]/!d;s|.*releases/||;s|/.*||' | sort -Vr | sed q
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 # Installation path
32 fx='/opt/mozilla/firefox'
34 mkdir -p $install$fx
35 mkdir -p $install/usr/bin
36 mkdir -p $install/usr/share/applications
37 mkdir -p $install/usr/share/icons/hicolor/128x128/apps
39 # Copy everything
40 cp -a $src/* $install$fx
42 # Executable
43 ln -s $fx/firefox $install/usr/bin/firefox-official
45 # Icons
46 ln -s $fx/browser/icons/mozicon128.png \
47 $install/usr/share/icons/hicolor/128x128/apps/firefox-official.png
48 for size in 16 32 48
49 do
50 icon_folder="$install/usr/share/icons/hicolor/${size}x$size/apps"
51 mkdir -p $icon_folder
52 ln -s $fx/browser/chrome/icons/default/default$size.png \
53 $icon_folder/firefox-official.png
54 done
56 # Allow user updates (save user's and our traffic)
57 # chmod -R a+w $install$fx
58 # Inhibit unprivileged user from updating,
59 # because 77.0 is the last 32 bit version
61 # Desktop shortcut
62 cp $stuff/firefox-official.desktop $install/usr/share/applications
63 }
65 # Rules to gen a SliTaz package suitable for Tazpkg.
66 genpkg_rules()
67 {
68 cp -a $install/* $fs
69 ln -s firefox-official $fs/usr/bin/browser-html5
70 }