wok-current view firefox-official-da/receipt @ rev 24442

created recipe for firefox-official-da
author Hans-G?nter Theisgen
date Mon Feb 14 07:26:07 2022 +0100 (2022-02-14)
parents
children af8d823a3077
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 HOST_ARCH="i486"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 # Installation path
26 fx='/opt/mozilla/firefox'
28 mkdir -p $install$fx
29 mkdir -p $install/usr/bin
30 mkdir -p $install/usr/share/applications
31 mkdir -p $install/usr/share/icons/hicolor/128x128/apps
33 # Copy everything
34 cp -a $src/* $install$fx
36 # Executable
37 ln -s $fx/firefox $install/usr/bin/firefox-official
39 # Icons
40 ln -s $fx/browser/icons/mozicon128.png \
41 $install/usr/share/icons/hicolor/128x128/apps/firefox-official.png
42 for size in 16 32 48
43 do
44 icon_folder="$install/usr/share/icons/hicolor/${size}x$size/apps"
45 mkdir -p $icon_folder
46 ln -s $fx/browser/chrome/icons/default/default$size.png \
47 $icon_folder/firefox-official.png
48 done
50 # Desktop shortcut
51 cp $stuff/firefox-official.desktop $install/usr/share/applications
52 }
54 # Rules to gen a SliTaz package suitable for Tazpkg.
55 genpkg_rules()
56 {
57 cp -a $install/* $fs
58 ln -s firefox-official $fs/usr/bin/browser-html5
59 }