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

Small updates.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jan 31 16:45:41 2019 +0200 (2019-01-31)
parents 5669e8b3be70
children ea1ce0b9295f
line source
1 # SliTaz package receipt v2.
3 PACKAGE="firefox-official"
4 VERSION="59.0.3"
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-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 es) lang='es-ES';;
22 *) lang=$SET;;
23 esac
25 TARBALL="firefox-${ARCH/i486/i686}-$lang-$VERSION.tar.bz2"
26 WGET_URL="http://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-${ARCH/i486/i686}/$lang/firefox-$VERSION.tar.bz2"
27 rm -r $src/*
28 [ -e "$SRC/$TARBALL" ] || wget -O $SRC/$TARBALL $WGET_URL
29 tar -xf $SRC/$TARBALL 2>/dev/null
31 # Installation path
32 fx='/opt/mozilla/firefox'
34 mkdir -p \
35 $install$fx \
36 $install/usr/bin \
37 $install/usr/share/applications
39 # Copy everything
40 cp -a $src/firefox/* $install$fx
42 # Executable
43 ln -s $fx/firefox $install/usr/bin/firefox-official
45 # Icons
46 for size in 16 32 48 128; do
47 icon_folder="$install/usr/share/icons/hicolor/${size}x$size/apps"
48 mkdir -p $icon_folder
49 ln -s $fx/browser/chrome/icons/default/default$size.png \
50 $icon_folder/firefox-official.png
51 done
53 # Make symlinks relative
54 fix symlinks
56 # Allow user updates (save user's and our traffic)
57 chmod -R o+w $install$fx
59 # Desktop shortcuts
60 cp $stuff/*.desktop $install/usr/share/applications
62 # Link to "generic" browser-html5
63 ln -s firefox-official $install/usr/bin/browser-html5
65 # Fix ownership
66 chown -R root:root $install
68 # Clean
69 rm -r $src
70 }
72 genpkg_rules() {
73 PROVIDE="firefox-official browser-html5"
74 case $PACKAGE in
75 firefox-official)
76 lang="English"
77 PROVIDE="browser-html5"
78 ;;
79 *-de) lang="German";;
80 *-es) lang="Spanish";;
81 *-fr) lang="French";;
82 *-it) lang="Italian";;
83 *-pt-BR) lang="Portuguese (Brazil)";;
84 *-ru) lang="Russian";;
85 *-uk) lang="Ukrainian";;
86 esac
87 CAT="network|$lang language"
88 cp -a $install/* $fs
89 DEPENDS="atk libcairo dbus dbus-glib fontconfig freetype gdk-pixbuf glib gtk2 \
90 gtk3 pango libx11 libxcomposite libxdamage libxext \
91 libxfixes libxrender libxt libxcb"
92 TAGS="web-browser"
93 }