wok annotate firefox-official-it/receipt @ rev 25063

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