wok view firefox/receipt @ rev 25680
updated gnu-efi (3.0.14 -> 3.0.17)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Mar 18 18:46:02 2024 +0100 (8 months ago) |
parents | 41a539cfe5f8 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="firefox"
4 VERSION="17.0.11esr"
5 CATEGORY="network"
6 SHORT_DESC="User friendly, secure and fast web browser."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MPL2"
9 TARBALL="$PACKAGE-$VERSION.source.tar.bz2"
10 WEB_SITE="https://www.mozilla.org/firefox"
11 WGET_URL="https://ftp.mozilla.org/pub/firefox/releases/$VERSION/source/$TARBALL"
12 TAGS="web-browser"
14 DEPENDS="gtk+ sqlite dbus dbus-glib glib jpeg xorg-libX11 xorg-libXdamage \
15 alsa-lib xorg-libXt libevent libvpx pango nss sqlite libfirefox"
16 BUILD_DEPENDS="zip libIDL coreutils findutils wireless_tools-dev \
17 perl python yasm alsa-lib-dev mesa-dev libevent-dev libvpx-dev dbus-dev \
18 dbus-glib-dev gtk+-dev glib-dev pango-dev nss-dev sqlite-dev tar gzip"
20 # Rules to configure and make the package.
21 #
22 # A long compile time... dont forget to build libidl before and check the
23 # .mozconfig file from the stuff and the stuff/README document.
24 #
25 # WARNING: 1GB RAM minimum. Additional RAM will significantly decrease
26 # build time.
27 # At least 2.5 GB free disk space
29 # What is the latest version available today?
30 current_version()
31 {
32 wget -O - http://ftp.mozilla.org/pub/firefox/releases/ 2>/dev/null | \
33 sed '/firefox\/releases\/[0-9]/!d;s|.*firefox/releases/\([^/]*\)/.*|\1|' | sort -Vr | sed q
34 }
36 compile_rules()
37 {
38 # load mozconfig
39 cp -a $stuff/mozconfig $src
41 # build firefox and create a firefox tarball
42 # reducing log size: hide c++, nsinstall, python msgs
43 # Exception... Component returned failure code: known bug #696763
44 make -f client.mk | egrep -v "c++|nsinstall|python" &&
45 make -C obj-firefox/browser/installer
47 # install
48 # locate tarball
49 local tarball tarpath fn1 fn2
50 tarpath=$src/obj-firefox/dist
51 fn1="$tarpath/firefox-${VERSION%esr}.en-US.linux-$ARCH.tar.bz2"
52 fn2="$tarpath/firefox-${VERSION%esr}.en-US.linux-i686.tar.bz2"
53 [ -e "$fn1" ] && tarball="$fn1" && echo "$ARCH tarball found"
54 [ -e "$fn2" ] && tarball="$fn2" && echo "i686 tarball found"
55 [ -z "$tarball" ] && echo "ERROR: tarball not found" && exit 1
56 # extract tarball
57 mkdir -p $install/usr/lib/firefox-$VERSION &&
58 tar -xvf $tarball -C $install/usr/lib/firefox-$VERSION \
59 --strip-components=1 &&
60 chown -R -v root:root $install/usr/lib/firefox-$VERSION &&
61 chmod -v 755 $install/usr/lib/firefox-$VERSION/libxpcom.so &&
62 # install symlink in /usr/bin
63 mkdir -p $install/usr/bin &&
64 ln -sf ../lib/firefox-$VERSION/firefox $install/usr/bin &&
65 # install symlink for plugins
66 mkdir -p $install/usr/lib/mozilla/plugins &&
67 ln -sf ../mozilla/plugins $install/usr/lib/firefox-$VERSION
68 }
70 # Rules to gen a SliTaz package suitable for Tazpkg.
71 genpkg_rules()
72 {
73 # program
74 printf "Installing program.."
75 mkdir -p $fs/usr/lib &&
76 cp -a $install/usr/lib/$PACKAGE-$VERSION $fs/usr/lib &&
77 cp -a $install/usr/lib/mozilla $fs/usr/lib &&
78 cp -a $install/usr/bin $fs/usr
79 status
81 # search Plugin (by: oddball)
82 printf "Installing SliTaz search plugins.."
83 cp -a $stuff/searchplugins $fs/usr/lib/$PACKAGE-$VERSION
84 status
86 # prefs
87 printf "Installing SliTaz preferences.."
88 mkdir -p $fs/usr/lib/$PACKAGE-$VERSION/distribution &&
89 cp -a $stuff/distribution.ini $fs/usr/lib/$PACKAGE-$VERSION/distribution
90 status
92 # mozilla-common files
93 # dictionaries
94 printf "Installing common dictionnaries.."
95 rm -rf $fs/usr/lib/$PACKAGE-$VERSION/dictionaries &&
96 ln -sf ../mozilla-common-$VERSION/dictionaries \
97 $fs/usr/lib/$PACKAGE-$VERSION/dictionaries
98 status
99 # plugin-container
100 printf "Installing common plugin-container"
101 rm -f $fs/usr/lib/$PACKAGE-$VERSION/plugin-container &&
102 ln -sf ../mozilla-common-$VERSION/plugin-container \
103 $fs/usr/lib/$PACKAGE-$VERSION/plugin-container
104 status
105 # mozilla-xremote-client
106 printf "Installing common mozilla-xremote-client"
107 rm -f $fs/usr/lib/$PACKAGE-$VERSION/mozilla-xremote-client &&
108 ln -sf ../mozilla-common-$VERSION/mozilla-xremote-client \
109 $fs/usr/lib/$PACKAGE-$VERSION/mozilla-xremote-client
110 status
111 # components/libdbusservice.so
112 # components/libmozgnome.so
113 for file in libdbusservice.so libmozgnome.so; do
114 printf "Installing common components/$file"
115 rm -f $fs/usr/lib/$PACKAGE-$VERSION/components/$file &&
116 ln -sf ../../mozilla-common-$VERSION/components/$file \
117 $fs/usr/lib/$PACKAGE-$VERSION/components/$file
118 status
119 done
120 # chrome.manifest
121 printf "Installing common chrome.manifest"
122 rm -f $fs/usr/lib/$PACKAGE-$VERSION/chrome.manifest &&
123 ln -sf ../mozilla-common-$VERSION/chrome.manifest \
124 $fs/usr/lib/$PACKAGE-$VERSION/chrome.manifest
125 status
127 # run-mozilla.sh
128 printf "Installing common run-mozilla.sh"
129 rm -f $fs/usr/lib/$PACKAGE-$VERSION/run-mozilla.sh &&
130 ln -sf ../mozilla-common-$VERSION/run-mozilla.sh \
131 $fs/usr/lib/$PACKAGE-$VERSION/run-mozilla.sh
132 status
134 # libmozalloc.so
135 printf "Installing common libmozalloc.so"
136 rm -f $fs/usr/lib/$PACKAGE-$VERSION/libmozalloc.so &&
137 ln -sf ../mozilla-common-$VERSION/libmozalloc.so \
138 $fs/usr/lib/$PACKAGE-$VERSION/libmozalloc.so
139 status
141 chown -R root.root $fs
142 }