wok-undigest view palemoon/receipt @ rev 1199

sync some chroot packages
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Fri Aug 19 03:03:54 2016 +0200 (2016-08-19)
parents 3e0ea3ce9c1d
children 6483a798b55f
line source
1 # SliTaz package receipt.
3 PACKAGE="palemoon"
4 VERSION="26.4.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+ bzip2 libevent libffi sqlite"
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 bzip2-dev python-dev \
19 pixman pixman-dev sqlite sqlite-dev libffi libffi-dev libevent libevent-dev"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 sed 's|3.13.0|3.8.11.1|' -i $src/configure.in
25 find -type f | grep duckduckgo | xargs \
26 sed -i 's|name="t" value="palemoon"|name="t" value="slitaz"|'
27 cp $stuff/mozconfig $src
28 chmod -R +x build/autoconf/* python/*
29 find . -name '*.sh' -exec chmod +x {} \;
30 export MOZBUILD_STATE_PATH="$src/mozbuild"
31 export MOZCONFIG="$src/mozconfig"
32 export CPPFLAGS="$CPPFLAGS -O2"
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 echo ================================================================================
39 echo 'make package'
40 echo ================================================================================
41 make package
42 echo ================================================================================
43 # | egrep -v 'error|ERROR' ) > ./instLOG 2>&1
44 cd dist
45 for i in bin lib share/applications;
46 do install -d $DESTDIR/usr/$i; done
47 cp -a $PACKAGE $DESTDIR/usr/lib/$PACKAGE
48 cp -a $src/browser/branding/official/$PACKAGE.desktop \
49 $install/usr/share/applications
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 cp -a $install/* $fs
56 mkdir -p $fs/usr/share/pixmaps
57 ln -sf /usr/lib/$PACKAGE/$PACKAGE $fs/usr/bin
58 ln -sf /usr/lib/$PACKAGE/browser/chrome/icons/default/default48.png \
59 $fs/usr/share/pixmaps/palemoon.png
60 ln -s palemoon $fs/usr/bin/browser-html5
61 }