wok-6.x view firefox/receipt @ rev 22033

Add fs-uae
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Oct 21 10:33:44 2019 +0300 (2019-10-21)
parents c636d36601ac
children 453c249b6219
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 # load mozconfig
32 cp -a $stuff/mozconfig $src
34 # build firefox and create a firefox tarball
35 # reducing log size: hide c++, nsinstall, python msgs
36 # Exception... Component returned failure code: known bug #696763
37 make -f client.mk | egrep -v "c++|nsinstall|python" &&
38 make -C obj-firefox/browser/installer
40 # install
41 # locate tarball
42 local tarball tarpath fn1 fn2
43 tarpath=$src/obj-firefox/dist
44 fn1="$tarpath/firefox-${VERSION%esr}.en-US.linux-$ARCH.tar.bz2"
45 fn2="$tarpath/firefox-${VERSION%esr}.en-US.linux-i686.tar.bz2"
46 [ -e "$fn1" ] && tarball="$fn1" && echo "$ARCH tarball found"
47 [ -e "$fn2" ] && tarball="$fn2" && echo "i686 tarball found"
48 [ -z "$tarball" ] && echo "ERROR: tarball not found" && exit 1
49 # extract tarball
50 mkdir -p $install/usr/lib/firefox-$VERSION &&
51 tar -xvf $tarball -C $install/usr/lib/firefox-$VERSION \
52 --strip-components=1 &&
53 chown -R -v root:root $install/usr/lib/firefox-$VERSION &&
54 chmod -v 755 $install/usr/lib/firefox-$VERSION/libxpcom.so &&
55 # install symlink in /usr/bin
56 mkdir -p $install/usr/bin &&
57 ln -sf ../lib/firefox-$VERSION/firefox $install/usr/bin &&
58 # install symlink for plugins
59 mkdir -p $install/usr/lib/mozilla/plugins &&
60 ln -sf ../mozilla/plugins $install/usr/lib/firefox-$VERSION
61 }
63 # Rules to gen a SliTaz package suitable for Tazpkg.
64 genpkg_rules()
65 {
66 # program
67 printf "Installing program.."
68 mkdir -p $fs/usr/lib &&
69 cp -a $install/usr/lib/$PACKAGE-$VERSION $fs/usr/lib &&
70 cp -a $install/usr/lib/mozilla $fs/usr/lib &&
71 cp -a $install/usr/bin $fs/usr
72 status
74 # search Plugin (by: oddball)
75 printf "Installing SliTaz search plugins.."
76 cp -a $stuff/searchplugins $fs/usr/lib/$PACKAGE-$VERSION
77 status
79 # prefs
80 printf "Installing SliTaz preferences.."
81 mkdir -p $fs/usr/lib/$PACKAGE-$VERSION/distribution &&
82 cp -a $stuff/distribution.ini $fs/usr/lib/$PACKAGE-$VERSION/distribution
83 status
85 # mozilla-common files
86 # dictionaries
87 printf "Installing common dictionnaries.."
88 rm -rf $fs/usr/lib/$PACKAGE-$VERSION/dictionaries &&
89 ln -sf ../mozilla-common-$VERSION/dictionaries \
90 $fs/usr/lib/$PACKAGE-$VERSION/dictionaries
91 status
92 # plugin-container
93 printf "Installing common plugin-container"
94 rm -f $fs/usr/lib/$PACKAGE-$VERSION/plugin-container &&
95 ln -sf ../mozilla-common-$VERSION/plugin-container \
96 $fs/usr/lib/$PACKAGE-$VERSION/plugin-container
97 status
98 # mozilla-xremote-client
99 printf "Installing common mozilla-xremote-client"
100 rm -f $fs/usr/lib/$PACKAGE-$VERSION/mozilla-xremote-client &&
101 ln -sf ../mozilla-common-$VERSION/mozilla-xremote-client \
102 $fs/usr/lib/$PACKAGE-$VERSION/mozilla-xremote-client
103 status
104 # components/libdbusservice.so
105 # components/libmozgnome.so
106 for file in libdbusservice.so libmozgnome.so; do
107 printf "Installing common components/$file"
108 rm -f $fs/usr/lib/$PACKAGE-$VERSION/components/$file &&
109 ln -sf ../../mozilla-common-$VERSION/components/$file \
110 $fs/usr/lib/$PACKAGE-$VERSION/components/$file
111 status
112 done
113 # chrome.manifest
114 printf "Installing common chrome.manifest"
115 rm -f $fs/usr/lib/$PACKAGE-$VERSION/chrome.manifest &&
116 ln -sf ../mozilla-common-$VERSION/chrome.manifest \
117 $fs/usr/lib/$PACKAGE-$VERSION/chrome.manifest
118 status
120 # run-mozilla.sh
121 printf "Installing common run-mozilla.sh"
122 rm -f $fs/usr/lib/$PACKAGE-$VERSION/run-mozilla.sh &&
123 ln -sf ../mozilla-common-$VERSION/run-mozilla.sh \
124 $fs/usr/lib/$PACKAGE-$VERSION/run-mozilla.sh
125 status
127 # libmozalloc.so
128 printf "Installing common libmozalloc.so"
129 rm -f $fs/usr/lib/$PACKAGE-$VERSION/libmozalloc.so &&
130 ln -sf ../mozilla-common-$VERSION/libmozalloc.so \
131 $fs/usr/lib/$PACKAGE-$VERSION/libmozalloc.so
132 status
134 chown -R root.root $fs
135 }