wok-current view firefox/receipt @ rev 19221
Up pcre (8.39); add pcre2 (10.21).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Jun 18 19:48:35 2016 +0300 (2016-06-18) |
parents | 789fdff5190c |
children | 9031ce7fa5d8 |
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="http://www.mozilla.org/firefox"
11 WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/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 compile_rules()
30 {
31 cd $src
32 # load mozconfig
33 cp -a $stuff/mozconfig $src
35 # build firefox and create a firefox tarball
36 # reducing log size: hide c++, nsinstall, python msgs
37 # Exception... Component returned failure code: known bug #696763
38 make -f client.mk | egrep -v "c++|nsinstall|python" &&
39 make -C obj-firefox/browser/installer
41 # install
42 # locate tarball
43 local tarball tarpath fn1 fn2
44 tarpath=$src/obj-firefox/dist
45 fn1="$tarpath/firefox-${VERSION%esr}.en-US.linux-$ARCH.tar.bz2"
46 fn2="$tarpath/firefox-${VERSION%esr}.en-US.linux-$(uname -m).tar.bz2"
47 [ -e "$fn1" ] && tarball="$fn1" && echo "$ARCH tarball found"
48 [ -e "$fn2" ] && tarball="$fn2" && echo "$(uname -m) tarball found"
49 [ -z "$tarball" ] && echo "ERROR: tarball not found" && exit 1
50 # extract tarball
51 mkdir -p $install/usr/lib/firefox-$VERSION &&
52 tar -xvf $tarball -C $install/usr/lib/firefox-$VERSION \
53 --strip-components=1 &&
54 chown -R -v root:root $install/usr/lib/firefox-$VERSION &&
55 chmod -v 755 $install/usr/lib/firefox-$VERSION/libxpcom.so &&
56 # install symlink in /usr/bin
57 mkdir -p $install/usr/bin &&
58 ln -sf ../lib/firefox-$VERSION/firefox $install/usr/bin &&
59 # install symlink for plugins
60 mkdir -p $install/usr/lib/mozilla/plugins &&
61 ln -sf ../mozilla/plugins $install/usr/lib/firefox-$VERSION
62 }
64 # Rules to gen a SliTaz package suitable for Tazpkg.
65 genpkg_rules()
66 {
67 # program
68 printf "Installing program.."
69 mkdir -p $fs/usr/lib &&
70 cp -a $install/usr/lib/$PACKAGE-$VERSION $fs/usr/lib &&
71 cp -a $install/usr/lib/mozilla $fs/usr/lib &&
72 cp -a $install/usr/bin $fs/usr
73 status
75 # search Plugin (by: oddball)
76 printf "Installing SliTaz search plugins.."
77 cp -a $stuff/searchplugins $fs/usr/lib/$PACKAGE-$VERSION
78 status
80 # prefs
81 printf "Installing SliTaz preferences.."
82 mkdir -p $fs/usr/lib/$PACKAGE-$VERSION/distribution &&
83 cp -a $stuff/distribution.ini $fs/usr/lib/$PACKAGE-$VERSION/distribution
84 status
86 # mozilla-common files
87 # dictionaries
88 printf "Installing common dictionnaries.."
89 rm -rf $fs/usr/lib/$PACKAGE-$VERSION/dictionaries &&
90 ln -sf ../mozilla-common-$VERSION/dictionaries \
91 $fs/usr/lib/$PACKAGE-$VERSION/dictionaries
92 status
93 # plugin-container
94 printf "Installing common plugin-container"
95 rm -f $fs/usr/lib/$PACKAGE-$VERSION/plugin-container &&
96 ln -sf ../mozilla-common-$VERSION/plugin-container \
97 $fs/usr/lib/$PACKAGE-$VERSION/plugin-container
98 status
99 # mozilla-xremote-client
100 printf "Installing common mozilla-xremote-client"
101 rm -f $fs/usr/lib/$PACKAGE-$VERSION/mozilla-xremote-client &&
102 ln -sf ../mozilla-common-$VERSION/mozilla-xremote-client \
103 $fs/usr/lib/$PACKAGE-$VERSION/mozilla-xremote-client
104 status
105 # components/libdbusservice.so
106 # components/libmozgnome.so
107 for file in libdbusservice.so libmozgnome.so; do
108 printf "Installing common components/$file"
109 rm -f $fs/usr/lib/$PACKAGE-$VERSION/components/$file &&
110 ln -sf ../../mozilla-common-$VERSION/components/$file \
111 $fs/usr/lib/$PACKAGE-$VERSION/components/$file
112 status
113 done
114 # chrome.manifest
115 printf "Installing common chrome.manifest"
116 rm -f $fs/usr/lib/$PACKAGE-$VERSION/chrome.manifest &&
117 ln -sf ../mozilla-common-$VERSION/chrome.manifest \
118 $fs/usr/lib/$PACKAGE-$VERSION/chrome.manifest
119 status
121 # run-mozilla.sh
122 printf "Installing common run-mozilla.sh"
123 rm -f $fs/usr/lib/$PACKAGE-$VERSION/run-mozilla.sh &&
124 ln -sf ../mozilla-common-$VERSION/run-mozilla.sh \
125 $fs/usr/lib/$PACKAGE-$VERSION/run-mozilla.sh
126 status
128 # libmozalloc.so
129 printf "Installing common libmozalloc.so"
130 rm -f $fs/usr/lib/$PACKAGE-$VERSION/libmozalloc.so &&
131 ln -sf ../mozilla-common-$VERSION/libmozalloc.so \
132 $fs/usr/lib/$PACKAGE-$VERSION/libmozalloc.so
133 status
135 chown -R root.root $fs
136 }