wok rev 24548
created recipe for firefox-official-pl
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 25 07:47:13 2022 +0100 (2022-02-25) |
parents | 714bf3b9649f |
children | e38fa996777e |
files | firefox-official-pl/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/firefox-official-pl/receipt Fri Feb 25 07:47:13 2022 +0100 1.3 @@ -0,0 +1,73 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="firefox-official-pl" 1.7 +lang="pl" 1.8 +VERSION="77.0" 1.9 +CATEGORY="network" 1.10 +TAGS="web-browser" 1.11 +SHORT_DESC="Official Firefox build by the Mozilla foundation (Polish language)." 1.12 +MAINTAINER="maintainer@slitaz.org" 1.13 +LICENSE="MPL2" 1.14 +WEB_SITE="https://www.mozilla.org/firefox" 1.15 + 1.16 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.17 +WGET_URL="https://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-i686/$lang/firefox-$VERSION.tar.bz2" 1.18 + 1.19 +PROVIDE="firefox-official browser-html5" 1.20 +SUGGESTED="vlc" 1.21 +DEPENDS="alsa-lib dbus-glib gtk+ gtk+3 libatomic xorg-libXt libwrap" 1.22 + 1.23 +CONFIG_FILES="/opt/mozilla/firefox/distribution/policies.json" 1.24 + 1.25 +HOST_ARCH="i486" 1.26 + 1.27 +# What is the latest version available today? 1.28 +current_version() 1.29 +{ 1.30 + wget -O - http://ftp.mozilla.org/pub/firefox/releases/ 2>/dev/null | \ 1.31 + sed '/releases\/[0-9]/!d;s|.*releases/||;s|/.*||' | sort -Vr | sed q 1.32 +} 1.33 + 1.34 +# Rules to configure and make the package. 1.35 +compile_rules() 1.36 +{ 1.37 + # Installation path 1.38 + fx='/opt/mozilla/firefox' 1.39 + 1.40 + mkdir -p $install$fx/distribution 1.41 + mkdir -p $install/usr/bin 1.42 + mkdir -p $install/usr/share/applications 1.43 + mkdir -p $install/usr/share/icons/hicolor/128x128/apps 1.44 + 1.45 + # Copy everything 1.46 + cp -a $src/* $install$fx 1.47 + 1.48 + # Executable 1.49 + ln -s $fx/firefox $install/usr/bin/firefox-official 1.50 + 1.51 + # Icons 1.52 + ln -s $fx/browser/icons/mozicon128.png \ 1.53 + $install/usr/share/icons/hicolor/128x128/apps/firefox-official.png 1.54 + for size in 16 32 48 1.55 + do 1.56 + icon_folder="$install/usr/share/icons/hicolor/${size}x$size/apps" 1.57 + mkdir -p $icon_folder 1.58 + ln -s $fx/browser/chrome/icons/default/default$size.png \ 1.59 + $icon_folder/firefox-official.png 1.60 + done 1.61 + 1.62 + # Desktop shortcut 1.63 + cp $WOK/firefox-official/stuff/firefox-official.desktop \ 1.64 + $install/usr/share/applications 1.65 + 1.66 + # Disable update 1.67 + cp $WOK/firefox-official/stuff/policies.json \ 1.68 + $install$fx/distribution 1.69 +} 1.70 + 1.71 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.72 +genpkg_rules() 1.73 +{ 1.74 + cp -a $install/* $fs 1.75 + ln -s firefox-official $fs/usr/bin/browser-html5 1.76 +}