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

Small updates
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Oct 08 11:41:17 2018 +0300 (2018-10-08)
parents d5041660e43d
children f48456621a9d
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="http://www.mozilla.org/firefox"
10 REPOLOGY="firefox"
11 HOST_ARCH="i486 x86_64"
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 fo='firefox-official'
17 SPLIT="$fo-de:de $fo-es:es $fo-fr:fr $fo-it:it $fo-pt-BR:pt-BR $fo-ru:ru \
18 $fo-uk:uk"
20 compile_rules() {
21 case $SET in
22 '') lang='en-US';;
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
34 # Installation path
35 fx='/opt/mozilla/firefox'
37 mkdir -p \
38 $install$fx \
39 $install/usr/bin \
40 $install/usr/share/applications
42 # Copy everything
43 cp -a $src/firefox/* $install$fx
45 # Executable
46 ln -s $fx/firefox $install/usr/bin/firefox-official
48 # Icons
49 for size in 16 32 48 128; 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 PROVIDE="firefox-official browser-html5"
77 case $PACKAGE in
78 firefox-official)
79 lang="English"
80 PROVIDE="browser-html5"
81 ;;
82 *-de) lang="German";;
83 *-es) lang="Spanish";;
84 *-fr) lang="French";;
85 *-it) lang="Italian";;
86 *-pt-BR) lang="Portuguese (Brazil)";;
87 *-ru) lang="Russian";;
88 *-uk) lang="Ukrainian";;
89 esac
90 CAT="network|$lang language"
91 cp -a $install/* $fs
92 DEPENDS="atk cairo dbus dbus-glib fontconfig freetype gdk-pixbuf glib gtk+ \
93 gtk+3 pango xorg-libX11 xorg-libXcomposite xorg-libXdamage xorg-libXext \
94 xorg-libXfixes xorg-libXrender xorg-libXt xorg-libxcb"
95 TAGS="web-browser"
96 }