# HG changeset patch # User Hans-G?nter Theisgen # Date 1645771633 -3600 # Node ID 506a170a3eaad2e2d6b64bd123b38c266890a0bd # Parent 714bf3b9649fb63f51066c7e77354ccad06363b3 created recipe for firefox-official-pl diff -r 714bf3b9649f -r 506a170a3eaa firefox-official-pl/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/firefox-official-pl/receipt Fri Feb 25 07:47:13 2022 +0100 @@ -0,0 +1,73 @@ +# SliTaz package receipt. + +PACKAGE="firefox-official-pl" +lang="pl" +VERSION="77.0" +CATEGORY="network" +TAGS="web-browser" +SHORT_DESC="Official Firefox build by the Mozilla foundation (Polish language)." +MAINTAINER="maintainer@slitaz.org" +LICENSE="MPL2" +WEB_SITE="https://www.mozilla.org/firefox" + +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WGET_URL="https://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-i686/$lang/firefox-$VERSION.tar.bz2" + +PROVIDE="firefox-official browser-html5" +SUGGESTED="vlc" +DEPENDS="alsa-lib dbus-glib gtk+ gtk+3 libatomic xorg-libXt libwrap" + +CONFIG_FILES="/opt/mozilla/firefox/distribution/policies.json" + +HOST_ARCH="i486" + +# What is the latest version available today? +current_version() +{ + wget -O - http://ftp.mozilla.org/pub/firefox/releases/ 2>/dev/null | \ + sed '/releases\/[0-9]/!d;s|.*releases/||;s|/.*||' | sort -Vr | sed q +} + +# Rules to configure and make the package. +compile_rules() +{ + # Installation path + fx='/opt/mozilla/firefox' + + mkdir -p $install$fx/distribution + mkdir -p $install/usr/bin + mkdir -p $install/usr/share/applications + mkdir -p $install/usr/share/icons/hicolor/128x128/apps + + # Copy everything + cp -a $src/* $install$fx + + # Executable + ln -s $fx/firefox $install/usr/bin/firefox-official + + # Icons + ln -s $fx/browser/icons/mozicon128.png \ + $install/usr/share/icons/hicolor/128x128/apps/firefox-official.png + for size in 16 32 48 + do + icon_folder="$install/usr/share/icons/hicolor/${size}x$size/apps" + mkdir -p $icon_folder + ln -s $fx/browser/chrome/icons/default/default$size.png \ + $icon_folder/firefox-official.png + done + + # Desktop shortcut + cp $WOK/firefox-official/stuff/firefox-official.desktop \ + $install/usr/share/applications + + # Disable update + cp $WOK/firefox-official/stuff/policies.json \ + $install$fx/distribution +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cp -a $install/* $fs + ln -s firefox-official $fs/usr/bin/browser-html5 +}