wok-next view palemoon/receipt @ rev 20566

linld, screenfetch: create $install tree (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Apr 10 10:30:46 2018 +0200 (2018-04-10)
parents 2f03cb67a994
children 941563a49009
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-dev \
20 xorg-libXt-dev" # sqlite sqlite-dev libevent libevent-dev
22 compile_rules() {
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 case $ARCH in
28 x86_64) sed -i 's|i686|nocona|' $src/mozconfig;;
29 esac
30 chmod -R +x build/autoconf/* python/*
31 find . -name '*.sh' -exec chmod +x {} \;
32 export CFLAGS=${CFLAGS/486/686}
33 export CXXFLAGS=${CXXFLAGS/486/686}
34 export MOZBUILD_STATE_PATH="$src/mozbuild"
35 export MOZCONFIG="$src/mozconfig"
36 export CPPFLAGS="$CPPFLAGS"
37 export MAKEFLAGS="$MAKEFLAGS"
38 python2 mach configure
39 python2 mach build || echo "Next =>"
40 python2 mach build
41 cd $src/obj-i686-pc-linux-gnu
42 ( make package | egrep -v 'error|ERROR' ) > ./instLOG 2>&1
43 cd dist
44 for i in bin lib share/applications;
45 do install -d $DESTDIR/usr/$i; done
46 cp -a $PACKAGE $DESTDIR/usr/lib/$PACKAGE
47 cp -a $src/browser/branding/official/$PACKAGE.desktop \
48 $install/usr/share/applications
49 }
51 genpkg_rules() {
52 cp -a $install/* $fs
53 mkdir -p $fs/usr/share/pixmaps
54 rm -f /usr/lib/$PACKAGE/$PACKAGE-bin
55 ln -sf /usr/lib/$PACKAGE/$PACKAGE $fs/usr/bin
56 ln -sf /usr/lib/$PACKAGE/browser/chrome/icons/default/default48.png \
57 $fs/usr/share/pixmaps/palemoon.png
58 ln -s palemoon $fs/usr/bin/browser-html5
59 }