wok-next view palemoon/receipt @ rev 19549
Up cacerts (20161124), perl no more need in post_install
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Dec 09 03:40:48 2016 +0200 (2016-12-09) |
parents | 983d378b4eb9 |
children | 0e8dadf052b9 |
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://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 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 MOZBUILD_STATE_PATH="$src/mozbuild"
30 export MOZCONFIG="$src/mozconfig"
31 export CPPFLAGS="$CPPFLAGS -O2"
32 export MAKEFLAGS="$MAKEFLAGS"
33 python2 mach configure
34 python2 mach build || echo "Next =>"
35 python2 mach build
36 cd $src/obj-i686-pc-linux-gnu
37 ( make package | egrep -v 'error|ERROR' ) > ./instLOG 2>&1
38 cd dist
39 for i in bin lib share/applications;
40 do install -d $DESTDIR/usr/$i; done
41 cp -a $PACKAGE $DESTDIR/usr/lib/$PACKAGE
42 cp -a $src/browser/branding/official/$PACKAGE.desktop \
43 $install/usr/share/applications
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 cp -a $install/* $fs
50 mkdir -p $fs/usr/share/pixmaps
51 rm -f /usr/lib/$PACKAGE/$PACKAGE-bin
52 ln -sf /usr/lib/$PACKAGE/$PACKAGE $fs/usr/bin
53 ln -sf /usr/lib/$PACKAGE/browser/chrome/icons/default/default48.png \
54 $fs/usr/share/pixmaps/palemoon.png
55 ln -s palemoon $fs/usr/bin/browser-html5
56 }