wok-next view palemoon/receipt @ rev 20326

linux-dev: tiny edits
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Nov 13 10:46:11 2017 +0200 (2017-11-13)
parents ace91d9d5849
children b87a339c501d
line source
1 # SliTaz package receipt.
3 PACKAGE="palemoon"
4 VERSION="27.6.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 gstreamer0 gstreamer0-dev gst0-plugins-base-dev gst0-plugins-base \
18 libvpx-dev mesa-dev 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 find -type f | grep duckduckgo | xargs \
25 sed -i 's|name="t" value="palemoon"|name="t" value="slitaz"|'
26 cp $stuff/mozconfig $src
27 chmod -R +x build/autoconf/* python/*
28 find . -name '*.sh' -exec chmod +x {} \;
29 export CFLAGS=${CFLAGS/486/686} && export CXXFLAGS=${CXXFLAGS/486/686}
30 export MOZBUILD_STATE_PATH="$src/mozbuild"
31 export MOZCONFIG="$src/mozconfig"
32 export CPPFLAGS="$CPPFLAGS"
33 export MAKEFLAGS="$MAKEFLAGS"
34 python2 mach configure
35 python2 mach build || echo "Next =>"
36 python2 mach build
37 cd $src/obj-i686-pc-linux-gnu
38 ( make package | egrep -v 'error|ERROR' ) > ./instLOG 2>&1
39 cd dist
40 for i in bin lib share/applications;
41 do install -d $DESTDIR/usr/$i; done
42 cp -a $PACKAGE $DESTDIR/usr/lib/$PACKAGE
43 cp -a $src/browser/branding/official/$PACKAGE.desktop \
44 $install/usr/share/applications
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 cp -a $install/* $fs
51 mkdir -p $fs/usr/share/pixmaps
52 rm -f /usr/lib/$PACKAGE/$PACKAGE-bin
53 ln -sf /usr/lib/$PACKAGE/$PACKAGE $fs/usr/bin
54 ln -sf /usr/lib/$PACKAGE/browser/chrome/icons/default/default48.png \
55 $fs/usr/share/pixmaps/palemoon.png
56 ln -s palemoon $fs/usr/bin/browser-html5
57 }