wok-6.x view firefox-official-da/receipt @ rev 24985

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