wok-6.x annotate firefox-official-pl/receipt @ rev 25558

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