wok annotate firefox-official-uk/receipt @ rev 24448

firefox-official*: disable update by policy
author Hans-G?nter Theisgen
date Tue Feb 15 10:43:08 2022 +0100 (2022-02-15)
parents 8ae9e1d172f0
children eecd62c54525
rev   line source
al@18699 1 # SliTaz package receipt.
al@18699 2
al@18699 3 PACKAGE="firefox-official-uk"
al@18699 4 lang="uk"
Hans-G?nter@23859 5 VERSION="77.0"
al@18699 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 (Ukrainian language)."
al@18699 9 MAINTAINER="al.bobylev@gmail.com"
al@18699 10 LICENSE="MPL2"
Hans-G?nter@24448 11 WEB_SITE="https://www.mozilla.org/firefox"
Hans-G?nter@21135 12
al@18699 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@18699 22 HOST_ARCH="i486"
al@18699 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@18699 31 # Rules to configure and make the package.
al@18699 32 compile_rules()
al@18699 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@18699 41
al@18803 42 # Copy everything
Hans-G?nter@24441 43 cp -a $src/* $install$fx
al@18699 44
al@18803 45 # Executable
Hans-G?nter@24441 46 ln -s $fx/firefox $install/usr/bin/firefox-official
al@18699 47
al@18699 48 # Icons
al@18803 49 ln -s $fx/browser/icons/mozicon128.png \
al@18699 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@18699 53 icon_folder="$install/usr/share/icons/hicolor/${size}x$size/apps"
al@18699 54 mkdir -p $icon_folder
al@18803 55 ln -s $fx/browser/chrome/icons/default/default$size.png \
al@18699 56 $icon_folder/firefox-official.png
Hans-G?nter@24441 57 done
al@18699 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@18699 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@18699 71 }
al@18699 72
al@18699 73 # Rules to gen a SliTaz package suitable for Tazpkg.
al@18699 74 genpkg_rules()
al@18699 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@18699 78 }