wok-next view palemoon/receipt @ rev 21017

Some maintenance
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 16 16:46:05 2018 +0300 (2018-10-16)
parents 5ce3f219a753
children d5aab818505e
line source
1 # SliTaz package receipt.
3 PACKAGE="palemoon"
4 VERSION="27.9.3"
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="gtk2"
16 BUILD_DEPENDS="autoconf213 gtk2-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 coreutils-file-special alsa-lib-dev spl spl-src"
21 # sqlite sqlite-dev libevent libevent-dev
23 compile_rules() {
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 case $ARCH in
29 x86_64) sed -i 's|i686|nocona|' $src/mozconfig;;
30 esac
31 chmod -R +x build/autoconf/* python/*
32 find . -name '*.sh' -exec chmod +x {} \;
33 export CFLAGS=${CFLAGS/486/686}
34 export CXXFLAGS=${CXXFLAGS/486/686}
35 export MOZBUILD_STATE_PATH="$src/mozbuild"
36 export MOZCONFIG="$src/mozconfig"
37 export CPPFLAGS="$CPPFLAGS"
38 export MAKEFLAGS="$MAKEFLAGS"
39 python2 mach configure
40 python2 mach build || echo "Next =>"
41 python2 mach build
42 cd $src/obj-i686-pc-linux-gnu
43 ( make package | 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 genpkg_rules() {
53 cp -a $install/* $fs
54 mkdir -p $fs/usr/share/pixmaps
55 rm -f /usr/lib/$PACKAGE/$PACKAGE-bin
56 ln -sf /usr/lib/$PACKAGE/$PACKAGE $fs/usr/bin
57 ln -sf /usr/lib/$PACKAGE/browser/chrome/icons/default/default48.png \
58 $fs/usr/share/pixmaps/palemoon.png
59 ln -s palemoon $fs/usr/bin/browser-html5
60 }