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