wok view palemoon/receipt @ rev 19090

palemoon: fix build, add description.txt, tags
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Sat Apr 30 21:11:11 2016 +0200 (2016-04-30)
parents 6e51b4446031
children d7f8436a2f34
line source
1 # SliTaz package receipt.
3 PACKAGE="palemoon"
4 VERSION="26.2.1"
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"
14 DEPENDS="gtk+"
15 BUILD_DEPENDS="autoconf213 gtk+-dev yasm zip unzip iw dbus-dev dbus-glib-dev \
16 iw libpng-dev gstreamer gstreamer-dev gst-plugins-base-dev gst-plugins-base \
17 libvpx-dev mesa-dev setuptools virtualenv zlib-dev python-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cp $stuff/mozconfig $src
23 chmod -R +x build/autoconf/* python/*
24 find . -name '*.sh' -exec chmod +x {} \;
25 export MOZBUILD_STATE_PATH="$src/mozbuild"
26 export MOZCONFIG="$src/mozconfig"
27 export CPPFLAGS="$CPPFLAGS -O2"
28 export MAKEFLAGS="$MAKEFLAGS"
29 python2 mach configure
30 python2 mach build || echo "Next =>"
31 python2 mach build
32 cd $src/obj-i686-pc-linux-gnu
33 ( make package | egrep -v 'error|ERROR' ) > ./instLOG 2>&1
34 cd dist
35 for i in bin lib share/applications;
36 do install -d $DESTDIR/usr/$i; done
37 cp -a $PACKAGE $DESTDIR/usr/lib/$PACKAGE
38 cp -a $src/browser/branding/official/$PACKAGE.desktop \
39 $install/usr/share/applications
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 cp -a $install/* $fs
46 mkdir -p $fs/usr/share/pixmaps
47 ln -sf /usr/lib/$PACKAGE/$PACKAGE $fs/usr/bin
48 ln -sf /usr/lib/$PACKAGE/browser/chrome/icons/default/default48.png \
49 $fs/usr/share/pixmaps/palemoon.png
50 }