wok-6.x view firefox-official-es/receipt @ rev 24839

updated libtkimg and libtkimg-dev (1.4.2 -> 1.4.13)
author Hans-G?nter Theisgen
date Fri Mar 25 09:07:22 2022 +0100 (2022-03-25)
parents 8ae9e1d172f0
children eecd62c54525
line source
1 # SliTaz package receipt.
3 PACKAGE="firefox-official-es"
4 lang="es-ES"
5 VERSION="77.0"
6 CATEGORY="network"
7 TAGS="web-browser"
8 SHORT_DESC="Official Firefox build by the Mozilla foundation (Spanish 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 77.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 }