wok view palemoon/receipt @ rev 19122

Up slitaz-base-files(305)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon May 09 13:55:20 2016 +0300 (2016-05-09)
parents 9731a21e8d4a
children 4b74c54bbbf2
line source
1 # SliTaz package receipt.
3 PACKAGE="palemoon"
4 VERSION="26.2.2"
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 setuptools virtualenv zlib-dev python-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 find -type f | grep duckduckgo | xargs \
24 sed -i 's|name="t" value="palemoon"|name="t" value="slitaz"|'
25 cp $stuff/mozconfig $src
26 chmod -R +x build/autoconf/* python/*
27 find . -name '*.sh' -exec chmod +x {} \;
28 export MOZBUILD_STATE_PATH="$src/mozbuild"
29 export MOZCONFIG="$src/mozconfig"
30 export CPPFLAGS="$CPPFLAGS -O2"
31 export MAKEFLAGS="$MAKEFLAGS"
32 python2 mach configure
33 python2 mach build || echo "Next =>"
34 python2 mach build
35 cd $src/obj-i686-pc-linux-gnu
36 ( make package | egrep -v 'error|ERROR' ) > ./instLOG 2>&1
37 cd dist
38 for i in bin lib share/applications;
39 do install -d $DESTDIR/usr/$i; done
40 cp -a $PACKAGE $DESTDIR/usr/lib/$PACKAGE
41 cp -a $src/browser/branding/official/$PACKAGE.desktop \
42 $install/usr/share/applications
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 cp -a $install/* $fs
49 mkdir -p $fs/usr/share/pixmaps
50 ln -sf /usr/lib/$PACKAGE/$PACKAGE $fs/usr/bin
51 ln -sf /usr/lib/$PACKAGE/browser/chrome/icons/default/default48.png \
52 $fs/usr/share/pixmaps/palemoon.png
53 ln -s palemoon $fs/usr/bin/browser-html5
54 }