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

Up tazlito (522)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Dec 04 11:14:50 2019 +0100 (2019-12-04)
parents d06ed51524ae
children 504d63fea9da
line source
1 # SliTaz package receipt v2.
3 PACKAGE="firefox-official"
4 VERSION="69.0"
5 CATEGORY="network"
6 SHORT_DESC="Official Firefox build by the Mozilla foundation"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="MPL2"
9 WEB_SITE="https://www.mozilla.org/en-US/firefox/"
10 REPOLOGY="firefox"
12 TARBALL="firefox-${ARCH/i486/i686}-en-US-$VERSION.tar.bz2"
13 WGET_URL="http://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-${ARCH/i486/i686}/en-US/firefox-$VERSION.tar.bz2"
15 SPLIT="$PACKAGE-de:de $PACKAGE-en-GB:gb $PACKAGE-es:es $PACKAGE-fr:fr $PACKAGE-it:it \
16 $PACKAGE-pt-BR:pt-BR $PACKAGE-ru:ru $PACKAGE-uk:uk"
18 compile_rules() {
19 case $SET in
20 '') lang='en-US';;
21 gb) lang='en-GB';;
22 es) lang='es-ES';;
23 *) lang=$SET;;
24 esac
26 TARBALL="firefox-${ARCH/i486/i686}-$lang-$VERSION.tar.bz2"
27 WGET_URL="http://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-${ARCH/i486/i686}/$lang/firefox-$VERSION.tar.bz2"
28 rm -r $src/*
29 [ -e "$SRC/$TARBALL" ] || wget -O $SRC/$TARBALL $WGET_URL
30 tar -xf $SRC/$TARBALL 2>/dev/null
32 # Installation path
33 fx='/opt/mozilla/firefox'
35 mkdir -p \
36 $install$fx \
37 $install/usr/bin \
38 $install/usr/share/applications
40 # Copy everything
41 cp -a $src/firefox/* $install$fx
43 # Executable
44 ln -s $fx/firefox $install/usr/bin/firefox-official
46 # Icons
47 for size in 16 32 48 128; do
48 icon_folder="$install/usr/share/icons/hicolor/${size}x$size/apps"
49 mkdir -p $icon_folder
50 ln -s $fx/browser/chrome/icons/default/default$size.png \
51 $icon_folder/firefox-official.png
52 done
54 # Make symlinks relative
55 fix symlinks
57 # Allow user updates (save user's and our traffic)
58 chmod -R o+w $install$fx
60 # Desktop shortcuts
61 cp $stuff/*.desktop $install/usr/share/applications
63 # Link to "generic" browser-html5
64 ln -s firefox-official $install/usr/bin/browser-html5
66 # Fix ownership
67 chown -R root:root $install
69 # Clean
70 rm -r $src
71 }
73 genpkg_rules() {
74 PROVIDE="firefox-official browser-html5"
75 case $PACKAGE in
76 firefox-official)
77 lang="English"
78 PROVIDE="browser-html5"
79 ;;
80 *-de) lang="German";;
81 *-en-GB) lang="English (Great Britain)";;
82 *-es) lang="Spanish";;
83 *-fr) lang="French";;
84 *-it) lang="Italian";;
85 *-pt-BR) lang="Portuguese (Brazil)";;
86 *-ru) lang="Russian";;
87 *-uk) lang="Ukrainian";;
88 esac
89 CAT="network|$lang language"
90 cp -a $install/* $fs
91 DEPENDS="atk libcairo dbus dbus-glib fontconfig freetype gdk-pixbuf glib gtk2 \
92 gtk3 pango libx11 libxcomposite libxdamage libxext \
93 libxfixes libxrender libxt libxcb"
94 TAGS="web-browser"
95 }