wok view palemoon/receipt @ rev 25539

Up perl-test-compile (3.1.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Mar 09 12:11:13 2023 +0000 (22 months ago)
parents 095836df71b7
children
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://repo.palemoon.org/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 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - $WEB_SITE 2>/dev/null | \
25 sed '/released/!d;s|.*oon ||;s| has.*||;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 sed -i 's|\(.\)uname -m|\1echo i686|' \
32 modules/freetype2/builds/unix/config.guess \
33 modules/freetype2/builds/unix/configure \
34 build/unix/mozconfig.linux32 \
35 build/autoconf/config.guess \
36 memory/jemalloc/src/config.guess \
37 memory/jemalloc/src/configure \
38 configure.in \
39 security/nss/coreconf/arch.mk \
40 security/nss/tests/run_niscc.sh \
41 nsprpub/build/autoconf/config.guess \
42 nsprpub/configure.in \
43 nsprpub/configure \
44 media/webrtc/trunk/build/install-build-deps.sh \
45 media/webrtc/trunk/build/common.gypi \
46 media/webrtc/trunk/build/install-chroot.sh \
47 media/webrtc/trunk/build/android/envsetup_functions.sh \
48 intl/icu/source/config.guess \
49 intl/icu/source/configure \
50 js/src/build/autoconf/config.guess \
51 js/src/ctypes/libffi/config.guess \
52 js/src/ctypes/libffi/configure \
53 ipc/chromium/src/third_party/libevent/config.guess \
54 ipc/chromium/src/third_party/libevent/configure
55 find -type f | grep duckduckgo | xargs \
56 sed -i 's|name="t" value="palemoon"|name="t" value="slitaz"|'
57 cp $stuff/mozconfig $src
58 chmod -R +x build/autoconf/* python/*
59 find . -name '*.sh' -exec chmod +x {} \;
60 export MOZBUILD_STATE_PATH="$src/mozbuild"
61 export MOZCONFIG="$src/mozconfig"
62 export CPPFLAGS="$CPPFLAGS -O2"
63 export MAKEFLAGS="$MAKEFLAGS"
64 python2 mach configure
65 python2 mach build || echo "Next =>"
66 python2 mach build
67 cd $src/obj-i686-pc-linux-gnu
68 ( make package | egrep -v 'error|ERROR' ) > ./instLOG 2>&1
69 cd dist
70 for i in bin lib share/applications;
71 do install -d $DESTDIR/usr/$i; done
72 cp -a $PACKAGE $DESTDIR/usr/lib/$PACKAGE
73 cp -a $src/browser/branding/official/$PACKAGE.desktop \
74 $install/usr/share/applications
75 }
77 # Rules to gen a SliTaz package suitable for Tazpkg.
78 genpkg_rules()
79 {
80 cp -a $install/* $fs
81 mkdir -p $fs/usr/share/pixmaps
82 rm -f /usr/lib/$PACKAGE/$PACKAGE-bin
83 ln -sf /usr/lib/$PACKAGE/$PACKAGE $fs/usr/bin
84 ln -sf /usr/lib/$PACKAGE/browser/chrome/icons/default/default48.png \
85 $fs/usr/share/pixmaps/palemoon.png
86 ln -s palemoon $fs/usr/bin/browser-html5
87 }