wok-next view firefox-official/receipt @ rev 21613
updated eboard (1.1.1 -> 1.1.3)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jun 25 10:33:28 2020 +0100 (2020-06-25) |
parents | 7dca1441fca5 |
children | abe887a87efa |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="firefox-official"
4 VERSION="71.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 {
20 case $SET in
21 '') lang='en-US';;
22 gb) lang='en-GB';;
23 es) lang='es-ES';;
24 *) lang=$SET;;
25 esac
27 TARBALL="firefox-${ARCH/i486/i686}-$lang-$VERSION.tar.bz2"
28 WGET_URL="http://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-${ARCH/i486/i686}/$lang/firefox-$VERSION.tar.bz2"
29 rm -r $src/*
30 [ -e "$SRC/$TARBALL" ] || wget -O $SRC/$TARBALL $WGET_URL
31 tar -xf $SRC/$TARBALL 2>/dev/null
33 # Installation path
34 fx='/opt/mozilla/firefox'
36 mkdir -p \
37 $install$fx \
38 $install/usr/bin \
39 $install/usr/share/applications
41 # Copy everything
42 cp -a $src/firefox/* $install$fx
44 # Executable
45 ln -s $fx/firefox $install/usr/bin/firefox-official
47 # Icons
48 for size in 16 32 48 128
49 do
50 icon_folder="$install/usr/share/icons/hicolor/${size}x$size/apps"
51 mkdir -p $icon_folder
52 ln -s $fx/browser/chrome/icons/default/default$size.png \
53 $icon_folder/firefox-official.png
54 done
56 # Make symlinks relative
57 fix symlinks
59 # Allow user updates (save user's and our traffic)
60 chmod -R o+w $install$fx
62 # Desktop shortcuts
63 cp $stuff/*.desktop $install/usr/share/applications
65 # Link to "generic" browser-html5
66 ln -s firefox-official $install/usr/bin/browser-html5
68 # Fix ownership
69 chown -R root:root $install
71 # Clean
72 rm -r $src
73 }
75 genpkg_rules()
76 {
77 PROVIDE="firefox-official browser-html5"
78 case $PACKAGE in
79 firefox-official)
80 lang="English"
81 PROVIDE="browser-html5"
82 ;;
83 *-de) lang="German";;
84 *-en-GB) lang="English (Great Britain)";;
85 *-es) lang="Spanish";;
86 *-fr) lang="French";;
87 *-it) lang="Italian";;
88 *-pt-BR) lang="Portuguese (Brazil)";;
89 *-ru) lang="Russian";;
90 *-uk) lang="Ukrainian";;
91 esac
92 CAT="network|$lang language"
93 cp -a $install/* $fs
94 DEPENDS="atk libcairo dbus dbus-glib fontconfig freetype gdk-pixbuf glib gtk2 \
95 gtk3 pango libx11 libxcomposite libxdamage libxext \
96 libxfixes libxrender libxt libxcb"
97 TAGS="web-browser"
98 }