wok annotate firefox-official/receipt @ rev 22060

created package get-uae
author Hans-G?nter Theisgen
date Thu Oct 24 16:03:15 2019 +0100 (2019-10-24)
parents 0d2e41537ea0
children 629175d3e623
rev   line source
pankso@16706 1 # SliTaz package receipt.
pankso@16706 2
pankso@16706 3 PACKAGE="firefox-official"
Hans-G?nter@21866 4 VERSION="69.0"
pankso@16706 5 CATEGORY="network"
Hans-G?nter@21135 6 TAGS="web-browser"
Hans-G?nter@21135 7 SHORT_DESC="Official Firefox build by the Mozilla foundation (English language)."
al@19453 8 MAINTAINER="al.bobylev@gmail.com"
pankso@16706 9 LICENSE="MPL2"
pankso@16706 10 WEB_SITE="http://www.mozilla.org/firefox"
Hans-G?nter@21135 11
al@18476 12 TARBALL="firefox-$VERSION.tar.bz2"
al@18699 13 WGET_URL="http://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-i686/en-US/$TARBALL"
Hans-G?nter@21135 14
Hans-G?nter@21135 15 PROVIDE="browser-html5"
Hans-G?nter@21135 16 DEPENDS="alsa-lib dbus-glib gtk+ gtk+3 libatomic xorg-libXt"
pankso@16706 17 HOST_ARCH="i486"
pankso@16706 18
pankso@16706 19 # Rules to configure and make the package.
pankso@16706 20 compile_rules()
pankso@16706 21 {
al@18803 22 # Installation path
al@18803 23 fx='/opt/mozilla/firefox'
al@18803 24
Hans-G?nter@21135 25 mkdir -p \
Hans-G?nter@21135 26 $install$fx \
Hans-G?nter@21135 27 $install/usr/bin \
Hans-G?nter@21135 28 $install/usr/share/applications \
al@18476 29 $install/usr/share/icons/hicolor/128x128/apps
al@18476 30
al@18803 31 # Copy everything
al@18803 32 cp -a $src/* $install$fx
al@18476 33
al@18803 34 # Executable
al@18803 35 ln -s $fx/firefox $install/usr/bin/firefox-official
al@18476 36
al@18803 37 # Icons
al@18803 38 ln -s $fx/browser/icons/mozicon128.png \
al@18803 39 $install/usr/share/icons/hicolor/128x128/apps/firefox-official.png
al@18803 40 for size in 16 32 48; do
al@18803 41 icon_folder="$install/usr/share/icons/hicolor/${size}x$size/apps"
al@18803 42 mkdir -p $icon_folder
al@18803 43 ln -s $fx/browser/chrome/icons/default/default$size.png \
al@18803 44 $icon_folder/firefox-official.png
al@18803 45 done
al@18803 46
al@18803 47 # Allow user updates (save user's and our traffic)
al@18803 48 chmod -R a+w $install$fx
al@18803 49
al@18803 50 # Desktop shortcut
Hans-G?nter@21135 51 cp $stuff/firefox-official.desktop \
Hans-G?nter@21135 52 $install/usr/share/applications
Hans-G?nter@21135 53 cp $stuff/firefox-official-private.desktop \
Hans-G?nter@21135 54 $install/usr/share/applications
Hans-G?nter@21135 55 cp $stuff/firefox-official-safe.desktop \
Hans-G?nter@21135 56 $install/usr/share/applications
pankso@16706 57 }
pankso@16706 58
pankso@16706 59 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@16706 60 genpkg_rules()
pankso@16706 61 {
al@18476 62 cp -a $install/* $fs
pascal@19092 63 ln -s firefox-official $fs/usr/bin/browser-html5
pankso@16706 64 }