wok-next annotate firefox/receipt @ rev 20859
Update ALSA stack (1.1.6)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jun 27 13:35:43 2018 +0300 (2018-06-27) |
parents | 7639f09792cf |
children | f48456621a9d |
rev | line source |
---|---|
pascal@20170 | 1 # SliTaz package receipt v2. |
pankso@45 | 2 |
pankso@45 | 3 PACKAGE="firefox" |
domcox@15533 | 4 VERSION="17.0.11esr" |
pankso@197 | 5 CATEGORY="network" |
pankso@45 | 6 SHORT_DESC="User friendly, secure and fast web browser." |
pankso@45 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15215 | 8 LICENSE="MPL2" |
pankso@4079 | 9 TARBALL="$PACKAGE-$VERSION.source.tar.bz2" |
domcox@14210 | 10 WEB_SITE="http://www.mozilla.org/firefox" |
slaxemulator@11324 | 11 WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$VERSION/source/$TARBALL" |
al@17501 | 12 TAGS="web-browser" |
pankso@45 | 13 |
pascal@20098 | 14 DEPENDS="gtk+ sqlite3 dbus dbus-glib glib jpeg xorg-libX11 xorg-libXdamage \ |
pascal@20098 | 15 alsa-lib xorg-libXt libevent libvpx pango nss libfirefox" |
pascal@20346 | 16 BUILD_DEPENDS="zip libidl coreutils findutils wireless_tools-dev \ |
pascal@12628 | 17 perl python yasm alsa-lib-dev mesa-dev libevent-dev libvpx-dev dbus-dev \ |
pascal@20098 | 18 dbus-glib-dev gtk+-dev glib-dev pango-dev nss-dev sqlite3-dev tar gzip" |
pascal@20170 | 19 SPLIT="firefox firefox-dev libfirefox" |
pankso@10737 | 20 |
pankso@45 | 21 # Rules to configure and make the package. |
pankso@45 | 22 # |
pankso@45 | 23 # A long compile time... dont forget to build libidl before and check the |
pankso@45 | 24 # .mozconfig file from the stuff and the stuff/README document. |
pankso@45 | 25 # |
domcox@14210 | 26 # WARNING: 1GB RAM minimum. Additional RAM will significantly decrease |
domcox@14210 | 27 # build time. |
domcox@14210 | 28 # At least 2.5 GB free disk space |
domcox@14210 | 29 |
pankso@45 | 30 compile_rules() |
pankso@45 | 31 { |
domcox@14210 | 32 # load mozconfig |
domcox@14210 | 33 cp -a $stuff/mozconfig $src |
slaxemulator@11324 | 34 |
domcox@14210 | 35 # build firefox and create a firefox tarball |
domcox@14210 | 36 # reducing log size: hide c++, nsinstall, python msgs |
domcox@14210 | 37 # Exception... Component returned failure code: known bug #696763 |
domcox@14210 | 38 make -f client.mk | egrep -v "c++|nsinstall|python" && |
domcox@14210 | 39 make -C obj-firefox/browser/installer |
slaxemulator@11324 | 40 |
domcox@14210 | 41 # install |
domcox@14210 | 42 # locate tarball |
domcox@14210 | 43 local tarball tarpath fn1 fn2 |
domcox@14210 | 44 tarpath=$src/obj-firefox/dist |
domcox@14210 | 45 fn1="$tarpath/firefox-${VERSION%esr}.en-US.linux-$ARCH.tar.bz2" |
domcox@14210 | 46 fn2="$tarpath/firefox-${VERSION%esr}.en-US.linux-$(uname -m).tar.bz2" |
domcox@14210 | 47 [ -e "$fn1" ] && tarball="$fn1" && echo "$ARCH tarball found" |
domcox@14210 | 48 [ -e "$fn2" ] && tarball="$fn2" && echo "$(uname -m) tarball found" |
domcox@14210 | 49 [ -z "$tarball" ] && echo "ERROR: tarball not found" && exit 1 |
domcox@14210 | 50 # extract tarball |
domcox@14210 | 51 mkdir -p $install/usr/lib/firefox-$VERSION && |
domcox@14210 | 52 tar -xvf $tarball -C $install/usr/lib/firefox-$VERSION \ |
domcox@14210 | 53 --strip-components=1 && |
domcox@14210 | 54 chown -R -v root:root $install/usr/lib/firefox-$VERSION && |
domcox@14210 | 55 chmod -v 755 $install/usr/lib/firefox-$VERSION/libxpcom.so && |
domcox@14210 | 56 # install symlink in /usr/bin |
domcox@14210 | 57 mkdir -p $install/usr/bin && |
domcox@14210 | 58 ln -sf ../lib/firefox-$VERSION/firefox $install/usr/bin && |
domcox@14210 | 59 # install symlink for plugins |
domcox@14210 | 60 mkdir -p $install/usr/lib/mozilla/plugins && |
domcox@14210 | 61 ln -sf ../mozilla/plugins $install/usr/lib/firefox-$VERSION |
pankso@45 | 62 } |
pankso@45 | 63 |
pankso@45 | 64 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@45 | 65 genpkg_rules() |
pankso@45 | 66 { |
pascal@20170 | 67 case $PACKAGE in |
pascal@20170 | 68 firefox) |
pascal@20170 | 69 # program |
pascal@20170 | 70 mkdir -p $fs/usr/lib && |
pascal@20170 | 71 cp -a $install/usr/lib/$PACKAGE-$VERSION $fs/usr/lib && |
pascal@20170 | 72 cp -a $install/usr/lib/mozilla $fs/usr/lib && |
pascal@20170 | 73 cp -a $install/usr/bin $fs/usr |
pankso@45 | 74 |
pascal@20170 | 75 # search Plugin (by: oddball) |
pascal@20170 | 76 cp -a $stuff/searchplugins $fs/usr/lib/$PACKAGE-$VERSION |
pankso@45 | 77 |
pascal@20170 | 78 # prefs |
pascal@20170 | 79 mkdir -p $fs/usr/lib/$PACKAGE-$VERSION/distribution && |
pascal@20170 | 80 cp -a $stuff/distribution.ini $fs/usr/lib/$PACKAGE-$VERSION/distribution |
slaxemulator@9382 | 81 |
pascal@20170 | 82 # mozilla-common files |
pascal@20170 | 83 # dictionaries |
pascal@20170 | 84 rm -rf $fs/usr/lib/$PACKAGE-$VERSION/dictionaries && |
pascal@20170 | 85 ln -sf ../mozilla-common-$VERSION/dictionaries \ |
pascal@20170 | 86 $fs/usr/lib/$PACKAGE-$VERSION/dictionaries |
pascal@20170 | 87 # plugin-container |
pascal@20170 | 88 rm -f $fs/usr/lib/$PACKAGE-$VERSION/plugin-container && |
pascal@20170 | 89 ln -sf ../mozilla-common-$VERSION/plugin-container \ |
pascal@20170 | 90 $fs/usr/lib/$PACKAGE-$VERSION/plugin-container |
pascal@20170 | 91 # mozilla-xremote-client |
pascal@20170 | 92 rm -f $fs/usr/lib/$PACKAGE-$VERSION/mozilla-xremote-client && |
pascal@20170 | 93 ln -sf ../mozilla-common-$VERSION/mozilla-xremote-client \ |
pascal@20170 | 94 $fs/usr/lib/$PACKAGE-$VERSION/mozilla-xremote-client |
pascal@20170 | 95 # components/libdbusservice.so |
pascal@20170 | 96 # components/libmozgnome.so |
pascal@20170 | 97 for file in libdbusservice.so libmozgnome.so; do |
pascal@20170 | 98 rm -f $fs/usr/lib/$PACKAGE-$VERSION/components/$file && |
pascal@20170 | 99 ln -sf ../../mozilla-common-$VERSION/components/$file \ |
pascal@20170 | 100 $fs/usr/lib/$PACKAGE-$VERSION/components/$file |
pascal@20170 | 101 done |
pascal@20170 | 102 # chrome.manifest |
pascal@20170 | 103 rm -f $fs/usr/lib/$PACKAGE-$VERSION/chrome.manifest && |
pascal@20170 | 104 ln -sf ../mozilla-common-$VERSION/chrome.manifest \ |
pascal@20170 | 105 $fs/usr/lib/$PACKAGE-$VERSION/chrome.manifest |
pascal@20170 | 106 |
pascal@20170 | 107 # run-mozilla.sh |
pascal@20170 | 108 rm -f $fs/usr/lib/$PACKAGE-$VERSION/run-mozilla.sh && |
pascal@20170 | 109 ln -sf ../mozilla-common-$VERSION/run-mozilla.sh \ |
pascal@20170 | 110 $fs/usr/lib/$PACKAGE-$VERSION/run-mozilla.sh |
pascal@20170 | 111 |
pascal@20170 | 112 # libmozalloc.so |
pascal@20170 | 113 rm -f $fs/usr/lib/$PACKAGE-$VERSION/libmozalloc.so && |
pascal@20170 | 114 ln -sf ../mozilla-common-$VERSION/libmozalloc.so \ |
pascal@20170 | 115 $fs/usr/lib/$PACKAGE-$VERSION/libmozalloc.so |
pascal@20170 | 116 |
pascal@20170 | 117 chown -R root.root $fs |
pascal@20170 | 118 ;; |
pascal@20170 | 119 firefox-dev) |
pascal@20170 | 120 CAT="development|firefox devel files" |
pascal@20170 | 121 DEPENDS="alsa-lib sqlite3 cairo dbus-glib pango atk \ |
pascal@20170 | 122 glib xorg-libXt xorg-libXinerama \ |
pascal@20170 | 123 xorg-libXcursor xorg-libXcomposite xorg-libXext \ |
al@20513 | 124 xorg-libXdamage xorg-libxcb xorg-libSM xorg-libICE" |
pascal@20170 | 125 mkdir -p $fs/usr/include/$WANTED-$VERSION && |
pascal@20170 | 126 cp -rL $src/obj-firefox/dist/include/* $fs/usr/include/$WANTED-$VERSION |
pascal@20170 | 127 |
pascal@20170 | 128 mkdir -p $fs/usr/lib/$WANTED-devel/sdk/bin/ply && |
pascal@20170 | 129 cp -rL $src/obj-firefox/dist/sdk/bin/*.py \ |
pascal@20170 | 130 $fs/usr/lib/$WANTED-devel/sdk/bin && |
pascal@20170 | 131 cp -rL $src/obj-firefox/dist/sdk/bin/ply/*.py \ |
pascal@20170 | 132 $fs/usr/lib/$WANTED-devel/sdk/bin/ply && |
pascal@20170 | 133 mkdir -p $fs/usr/lib/$WANTED-devel/sdk/lib && |
pascal@20170 | 134 cp -rL $src/obj-firefox/dist/sdk/lib/* \ |
pascal@20170 | 135 $fs/usr/lib/$WANTED-devel/sdk/lib |
pascal@20170 | 136 |
pascal@20170 | 137 # mkdir -v $fs/usr/include/$WANTED-$VERSION/npapi && |
pascal@20170 | 138 # cp -a $src/dom/plugins/base/*.h $fs/usr/include/$WANTED-$VERSION/npapi |
pascal@20170 | 139 |
pascal@20170 | 140 # /usr/share/idl folder should also be in firefox-dev |
pascal@20170 | 141 mkdir -p $fs/usr/share/$WANTED-$VERSION/idl && |
pascal@20170 | 142 cp -rL $src/obj-firefox/dist/idl/* $fs/usr/share/$WANTED-$VERSION/idl |
pascal@20170 | 143 |
pascal@20170 | 144 # copy missing *.pc files |
pascal@20170 | 145 mkdir -p $fs/usr/lib/pkgconfig && |
pascal@20170 | 146 cp -a $stuff/*.pc $fs/usr/lib/pkgconfig && |
pascal@20170 | 147 # fix version |
pascal@20170 | 148 sed -i "s/VERSION/$VERSION/" $fs/usr/lib/pkgconfig/* |
pascal@20170 | 149 ;; |
pascal@20170 | 150 libfirefox) |
pascal@20170 | 151 CAT="network|firefox/thunderbird common files" |
pascal@20170 | 152 DEPENDS="gtk+ sqlite3 dbus dbus-glib glib jpeg xorg-libX11 \ |
pascal@20170 | 153 xorg-libXdamage alsa-lib xorg-libXt" |
pascal@20170 | 154 # dictionaries/en-US.aff |
pascal@20170 | 155 # dictionaries/en-US.dic |
pascal@20170 | 156 mkdir -p $fs/usr/lib/mozilla-common-$VERSION/dictionaries |
pascal@20170 | 157 # cp -a $install/usr/lib/firefox-$VERSION/dictionaries \ |
pascal@20170 | 158 # $fs/usr/lib/mozilla-common-$VERSION |
pascal@20170 | 159 |
pascal@20170 | 160 # plugin-container |
pascal@20170 | 161 cp -a $install/usr/lib/firefox-$VERSION/plugin-container \ |
pascal@20170 | 162 $fs/usr/lib/mozilla-common-$VERSION |
pascal@20170 | 163 |
pascal@20170 | 164 # mozilla-xremote-client |
pascal@20170 | 165 cp -a $install/usr/lib/firefox-$VERSION/mozilla-xremote-client \ |
pascal@20170 | 166 $fs/usr/lib/mozilla-common-$VERSION |
pascal@20170 | 167 |
pascal@20170 | 168 # components/libdbusservice.so |
pascal@20170 | 169 # components/libmozgnome.so |
pascal@20170 | 170 mkdir -p $fs/usr/lib/mozilla-common-$VERSION/components |
pascal@20170 | 171 for file in libdbusservice.so libmozgnome.so; do |
pascal@20170 | 172 cp -a $install/usr/lib/firefox-$VERSION/components/$file \ |
pascal@20170 | 173 $fs/usr/lib/mozilla-common-$VERSION/components |
pascal@20170 | 174 done |
pascal@20170 | 175 |
pascal@20170 | 176 # chrome.manifest |
pascal@20170 | 177 cp -a $install/usr/lib/firefox-$VERSION/chrome.manifest \ |
pascal@20170 | 178 $fs/usr/lib/mozilla-common-$VERSION |
pascal@20170 | 179 |
pascal@20170 | 180 # run-mozilla.sh |
pascal@20170 | 181 cp -a $install/usr/lib/firefox-$VERSION/run-mozilla.sh \ |
pascal@20170 | 182 $fs/usr/lib/mozilla-common-$VERSION |
pascal@20170 | 183 |
pascal@20170 | 184 # libmozalloc.so |
pascal@20170 | 185 cp -a $install/usr/lib/firefox-$VERSION/libmozalloc.so \ |
pascal@20170 | 186 $fs/usr/lib/mozilla-common-$VERSION |
pascal@20170 | 187 ;; |
pascal@20170 | 188 esac |
pascal@20170 | 189 } |
pascal@20170 | 190 |
pascal@20170 | 191 # Pre and post install commands for Tazpkg. |
pascal@20170 | 192 post_install_firefox_dev() |
pascal@20170 | 193 { |
pascal@20170 | 194 for i in usr/share/idl/firefox- usr/include/firefox- \ |
pascal@20170 | 195 usr/lib/firefox-devel- ; do |
pascal@20170 | 196 for j in $(ls -d "$1"/$i* 2>/dev/null); do |
pascal@20170 | 197 [ "${j##*-}" = "$VERSION" ] && continue |
pascal@20170 | 198 [ ! -d "$j" ] || rm -rf "$j" |
pascal@20170 | 199 done |
domcox@14210 | 200 done |
pankso@45 | 201 } |