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