wok-next view palemoon/receipt @ rev 21306

updated httrack (3.45.4 -> 3.49.2)
author Hans-G?nter Theisgen
date Tue Dec 10 10:00:39 2019 +0100 (2019-12-10)
parents d457c4e37c1b
children 3a21852ed3ac
line source
1 # SliTaz package receipt.
3 PACKAGE="palemoon"
4 VERSION="27.9.3"
5 CATEGORY="network"
6 SHORT_DESC="Browser based on Firefox that's optimised for performance"
7 MAINTAINER="psychomaniak@xakep.ru"
8 LICENSE="MPL2"
9 WEB_SITE="https://www.palemoon.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/MoonchildProductions/Pale-Moon/archive/${VERSION}_Release.tar.gz"
14 BUILD_DEPENDS="autoconf213 gtk2-dev yasm zip unzip iw dbus-dev dbus-glib-dev \
15 iw libpng-dev gstreamer0-dev gst0-plugins-base-dev \
16 libvpx-dev mesa-dev virtualenv zlib-dev bzip2-dev python-dev \
17 pixman-dev libffi-dev libjpeg-turbo-dev \
18 libxt-dev coreutils-file-special alsa-lib-dev spl spl-src"
19 # sqlite sqlite-dev libevent libevent-dev
21 compile_rules() {
22 find -type f | grep duckduckgo | xargs \
23 sed -i 's|name="t" value="palemoon"|name="t" value="slitaz"|'
24 cp $stuff/mozconfig $src
25 case $ARCH in
26 x86_64) sed -i 's|i686|nocona|' $src/mozconfig;;
27 esac
28 chmod -R +x build/autoconf/* python/*
29 find . -name '*.sh' -exec chmod +x {} \;
30 export CFLAGS=${CFLAGS/486/686}
31 export CXXFLAGS=${CXXFLAGS/486/686}
32 export MOZBUILD_STATE_PATH="$src/mozbuild"
33 export MOZCONFIG="$src/mozconfig"
34 export CPPFLAGS="$CPPFLAGS"
35 export MAKEFLAGS="$MAKEFLAGS"
36 python2 mach configure
37 python2 mach build || echo "Next =>"
38 python2 mach build
39 cd $src/obj-i686-pc-linux-gnu
40 ( make package | egrep -v 'error|ERROR' ) > ./instLOG 2>&1
41 cd dist
42 for i in bin lib share/applications; do
43 install -d $install/usr/$i
44 done
45 cp -a $PACKAGE $install/usr/lib/$PACKAGE
46 cp -a $src/browser/branding/official/$PACKAGE.desktop \
47 $install/usr/share/applications
48 }
50 genpkg_rules() {
51 cp -a $install/* $fs
52 mkdir -p $fs/usr/share/pixmaps
53 rm -f /usr/lib/$PACKAGE/$PACKAGE-bin
54 ln -sf /usr/lib/$PACKAGE/$PACKAGE $fs/usr/bin
55 ln -sf /usr/lib/$PACKAGE/browser/chrome/icons/default/default48.png \
56 $fs/usr/share/pixmaps/palemoon.png
57 ln -s palemoon $fs/usr/bin/browser-html5
58 DEPENDS="gtk2"
59 PROVIDE="browser-html5"
60 TAGS="browser web-browser"
61 }