wok-next view palemoon/receipt @ rev 20454

Choose between libpng16 and libpng12
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 28 17:32:31 2018 +0200 (2018-02-28)
parents bce36a298f1e
children cbe34297250f
line source
1 # SliTaz package receipt.
3 PACKAGE="palemoon"
4 VERSION="27.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 libpng16-dev gstreamer0 gstreamer0-dev gst0-plugins-base-dev gst0-plugins-base \
18 libvpx-dev mesa-dev virtualenv zlib-dev bzip2-dev python-dev \
19 xorg-pixman xorg-pixman-dev libffi libffi-dev libjpeg-turbo libjpeg-turbo-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 }