wok-6.x annotate firefox-official-en-GB/receipt @ rev 24600

updated ghostscript and ghostscript-dev again (9.02 -> 9.55.0)
author Hans-G?nter Theisgen
date Wed Mar 02 07:43:51 2022 +0100 (2022-03-02)
parents 8ae9e1d172f0
children eecd62c54525
rev   line source
al@21863 1 # SliTaz package receipt.
al@21863 2
al@21863 3 PACKAGE="firefox-official-en-GB"
al@21863 4 lang="en-GB"
Hans-G?nter@23859 5 VERSION="77.0"
al@21863 6 CATEGORY="network"
al@21863 7 TAGS="web-browser"
al@21863 8 SHORT_DESC="Official Firefox build by the Mozilla foundation (English language for Great Britain)."
al@21863 9 MAINTAINER="al.bobylev@gmail.com"
al@21863 10 LICENSE="MPL2"
Hans-G?nter@24448 11 WEB_SITE="https://www.mozilla.org/firefox"
al@21863 12
al@21863 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"
al@21863 15
al@21863 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@21863 22 HOST_ARCH="i486"
al@21863 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@21863 31 # Rules to configure and make the package.
al@21863 32 compile_rules()
al@21863 33 {
al@21863 34 # Installation path
al@21863 35 fx='/opt/mozilla/firefox'
al@21863 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@21863 41
al@21863 42 # Copy everything
Hans-G?nter@24441 43 cp -a $src/* $install$fx
al@21863 44
al@21863 45 # Executable
Hans-G?nter@24441 46 ln -s $fx/firefox $install/usr/bin/firefox-official
al@21863 47
al@21863 48 # Icons
al@21863 49 ln -s $fx/browser/icons/mozicon128.png \
al@21863 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@21863 53 icon_folder="$install/usr/share/icons/hicolor/${size}x$size/apps"
al@21863 54 mkdir -p $icon_folder
al@21863 55 ln -s $fx/browser/chrome/icons/default/default$size.png \
al@21863 56 $icon_folder/firefox-official.png
Hans-G?nter@24441 57 done
al@21863 58
al@21863 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@21863 63
al@21863 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@21863 71 }
al@21863 72
al@21863 73 # Rules to gen a SliTaz package suitable for Tazpkg.
al@21863 74 genpkg_rules()
al@21863 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@21863 78 }