wok-next view firefox-official/receipt @ rev 21726

updated firefox-official (77.0 -> 81.0)
author Hans-G?nter Theisgen
date Sun Sep 27 14:34:31 2020 +0100 (2020-09-27)
parents abe887a87efa
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="firefox-official"
4 VERSION="81.0"
5 CATEGORY="network"
6 TAGS="web-browser"
7 SHORT_DESC="Official Firefox build by the Mozilla foundation"
8 MAINTAINER="al.bobylev@gmail.com"
9 LICENSE="MPL2"
10 WEB_SITE="https://www.mozilla.org/en-US/firefox/"
11 REPOLOGY="firefox"
13 TARBALL="firefox-${ARCH/i486/i686}-en-US-$VERSION.tar.bz2"
14 WGET_URL="http://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-${ARCH/i486/i686}/en-US/firefox-$VERSION.tar.bz2"
16 SPLIT="$PACKAGE-de:de $PACKAGE-en-GB:gb
17 $PACKAGE-es:es $PACKAGE-fr:fr
18 $PACKAGE-it:it $PACKAGE-pt-BR:pt-BR
19 $PACKAGE-ru:ru $PACKAGE-uk:uk"
21 compile_rules()
22 {
23 case $SET in
24 '') lang='en-US';;
25 gb) lang='en-GB';;
26 es) lang='es-ES';;
27 *) lang=$SET;;
28 esac
30 TARBALL="firefox-${ARCH/i486/i686}-$lang-$VERSION.tar.bz2"
31 WGET_URL="http://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-${ARCH/i486/i686}/$lang/firefox-$VERSION.tar.bz2"
32 rm -r $src/*
33 [ -e "$SRC/$TARBALL" ] || wget -O $SRC/$TARBALL $WGET_URL
34 tar -xf $SRC/$TARBALL 2>/dev/null
36 # Installation path
37 fx='/opt/mozilla/firefox'
39 mkdir -p \
40 $install$fx \
41 $install/usr/bin \
42 $install/usr/share/applications
44 # Copy everything
45 cp -a $src/firefox/* $install$fx
47 # Executable
48 ln -s $fx/firefox $install/usr/bin/firefox-official
50 # Icons
51 for size in 16 32 48 128
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 # Make symbolic links relative
60 fix symlinks
62 # Allow user updates (save user's and our traffic)
63 chmod -R o+w $install$fx
65 # Desktop shortcuts
66 cp $stuff/*.desktop $install/usr/share/applications
68 # Link to "generic" browser-html5
69 ln -s firefox-official $install/usr/bin/browser-html5
71 # Fix ownership
72 chown -R root:root $install
74 # Clean
75 rm -r $src
76 }
78 genpkg_rules()
79 {
80 PROVIDE="firefox-official browser-html5"
81 case $PACKAGE in
82 firefox-official)
83 lang="English"
84 PROVIDE="browser-html5"
85 ;;
86 *-de) lang="German";;
87 *-en-GB) lang="English (Great Britain)";;
88 *-es) lang="Spanish";;
89 *-fr) lang="French";;
90 *-it) lang="Italian";;
91 *-pt-BR) lang="Portuguese (Brazil)";;
92 *-ru) lang="Russian";;
93 *-uk) lang="Ukrainian";;
94 esac
96 CAT="network|$lang language"
97 cp -a $install/* $fs
98 DEPENDS="atk dbus dbus-glib fontconfig freetype gdk-pixbuf glib gtk2
99 gtk3 libcairo libx11 libxcb libxcomposite libxdamage libxext
100 libxfixes libxrender libxt pango"
101 }