wok view palemoon/receipt @ rev 23608
updated nnn (3.0 -> 3.1)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 14 06:12:39 2020 +0100 (2020-04-14) |
parents | 00136ee8576e |
children | 095836df71b7 |
line source
1 # SliTaz package receipt.
3 PACKAGE="palemoon"
4 VERSION="26.5.0"
5 CATEGORY="network"
6 LICENSE="MPL2"
7 SHORT_DESC="Browser based on Firefox that's optimised for performance"
8 WEB_SITE="http://palemoon.org"
9 MAINTAINER="psychomaniak@xakep.ru"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="https://github.com/MoonchildProductions/Pale-Moon/archive/${VERSION}_Release.tar.gz"
12 TAGS="browser web-browser"
13 PROVIDE="browser-html5"
15 DEPENDS="gtk+"
16 BUILD_DEPENDS="autoconf213 gtk+-dev yasm zip unzip iw dbus-dev dbus-glib-dev \
17 iw libpng-dev gstreamer gstreamer-dev gst-plugins-base-dev gst-plugins-base \
18 libvpx-dev mesa-dev python-setuptools virtualenv zlib-dev bzip2-dev python-dev \
19 pixman pixman-dev libffi libffi-dev" # sqlite sqlite-dev libevent libevent-dev
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 sed -i 's|\(.\)uname -m|\1echo i686|' \
25 modules/freetype2/builds/unix/config.guess \
26 modules/freetype2/builds/unix/configure \
27 build/unix/mozconfig.linux32 \
28 build/autoconf/config.guess \
29 memory/jemalloc/src/config.guess \
30 memory/jemalloc/src/configure \
31 configure.in \
32 security/nss/coreconf/arch.mk \
33 security/nss/tests/run_niscc.sh \
34 nsprpub/build/autoconf/config.guess \
35 nsprpub/configure.in \
36 nsprpub/configure \
37 media/webrtc/trunk/build/install-build-deps.sh \
38 media/webrtc/trunk/build/common.gypi \
39 media/webrtc/trunk/build/install-chroot.sh \
40 media/webrtc/trunk/build/android/envsetup_functions.sh \
41 intl/icu/source/config.guess \
42 intl/icu/source/configure \
43 js/src/build/autoconf/config.guess \
44 js/src/ctypes/libffi/config.guess \
45 js/src/ctypes/libffi/configure \
46 ipc/chromium/src/third_party/libevent/config.guess \
47 ipc/chromium/src/third_party/libevent/configure
48 find -type f | grep duckduckgo | xargs \
49 sed -i 's|name="t" value="palemoon"|name="t" value="slitaz"|'
50 cp $stuff/mozconfig $src
51 chmod -R +x build/autoconf/* python/*
52 find . -name '*.sh' -exec chmod +x {} \;
53 export MOZBUILD_STATE_PATH="$src/mozbuild"
54 export MOZCONFIG="$src/mozconfig"
55 export CPPFLAGS="$CPPFLAGS -O2"
56 export MAKEFLAGS="$MAKEFLAGS"
57 python2 mach configure
58 python2 mach build || echo "Next =>"
59 python2 mach build
60 cd $src/obj-i686-pc-linux-gnu
61 ( make package | egrep -v 'error|ERROR' ) > ./instLOG 2>&1
62 cd dist
63 for i in bin lib share/applications;
64 do install -d $DESTDIR/usr/$i; done
65 cp -a $PACKAGE $DESTDIR/usr/lib/$PACKAGE
66 cp -a $src/browser/branding/official/$PACKAGE.desktop \
67 $install/usr/share/applications
68 }
70 # Rules to gen a SliTaz package suitable for Tazpkg.
71 genpkg_rules()
72 {
73 cp -a $install/* $fs
74 mkdir -p $fs/usr/share/pixmaps
75 rm -f /usr/lib/$PACKAGE/$PACKAGE-bin
76 ln -sf /usr/lib/$PACKAGE/$PACKAGE $fs/usr/bin
77 ln -sf /usr/lib/$PACKAGE/browser/chrome/icons/default/default48.png \
78 $fs/usr/share/pixmaps/palemoon.png
79 ln -s palemoon $fs/usr/bin/browser-html5
80 }