wok-current annotate 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 |
rev | line source |
---|---|
psychomaniak@19086 | 1 # SliTaz package receipt. |
psychomaniak@19086 | 2 |
psychomaniak@19086 | 3 PACKAGE="palemoon" |
psychomaniak@19086 | 4 VERSION="26.2.1" |
psychomaniak@19086 | 5 CATEGORY="network" |
psychomaniak@19086 | 6 LICENSE="MPL2" |
psychomaniak@19086 | 7 SHORT_DESC="Browser based on Firefox that's optimised for performance" |
psychomaniak@19086 | 8 WEB_SITE="http://palemoon.org" |
psychomaniak@19086 | 9 MAINTAINER="psychomaniak@xakep.ru" |
psychomaniak@19086 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
psychomaniak@19086 | 11 WGET_URL="https://github.com/MoonchildProductions/Pale-Moon/archive/${VERSION}_Release.tar.gz" |
psychomaniak@19090 | 12 TAGS="browser web-browser" |
psychomaniak@19086 | 13 |
psychomaniak@19086 | 14 DEPENDS="gtk+" |
psychomaniak@19086 | 15 BUILD_DEPENDS="autoconf213 gtk+-dev yasm zip unzip iw dbus-dev dbus-glib-dev \ |
psychomaniak@19086 | 16 iw libpng-dev gstreamer gstreamer-dev gst-plugins-base-dev gst-plugins-base \ |
psychomaniak@19086 | 17 libvpx-dev mesa-dev setuptools virtualenv zlib-dev python-dev" |
psychomaniak@19086 | 18 |
psychomaniak@19086 | 19 # Rules to configure and make the package. |
psychomaniak@19086 | 20 compile_rules() |
psychomaniak@19086 | 21 { |
psychomaniak@19086 | 22 cp $stuff/mozconfig $src |
psychomaniak@19086 | 23 chmod -R +x build/autoconf/* python/* |
psychomaniak@19086 | 24 find . -name '*.sh' -exec chmod +x {} \; |
psychomaniak@19086 | 25 export MOZBUILD_STATE_PATH="$src/mozbuild" |
psychomaniak@19086 | 26 export MOZCONFIG="$src/mozconfig" |
psychomaniak@19086 | 27 export CPPFLAGS="$CPPFLAGS -O2" |
psychomaniak@19086 | 28 export MAKEFLAGS="$MAKEFLAGS" |
psychomaniak@19086 | 29 python2 mach configure |
psychomaniak@19086 | 30 python2 mach build || echo "Next =>" |
psychomaniak@19086 | 31 python2 mach build |
psychomaniak@19086 | 32 cd $src/obj-i686-pc-linux-gnu |
psychomaniak@19086 | 33 ( make package | egrep -v 'error|ERROR' ) > ./instLOG 2>&1 |
psychomaniak@19086 | 34 cd dist |
psychomaniak@19086 | 35 for i in bin lib share/applications; |
psychomaniak@19086 | 36 do install -d $DESTDIR/usr/$i; done |
psychomaniak@19086 | 37 cp -a $PACKAGE $DESTDIR/usr/lib/$PACKAGE |
psychomaniak@19086 | 38 cp -a $src/browser/branding/official/$PACKAGE.desktop \ |
psychomaniak@19086 | 39 $install/usr/share/applications |
psychomaniak@19086 | 40 } |
psychomaniak@19086 | 41 |
psychomaniak@19086 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
psychomaniak@19086 | 43 genpkg_rules() |
psychomaniak@19086 | 44 { |
psychomaniak@19086 | 45 cp -a $install/* $fs |
psychomaniak@19090 | 46 mkdir -p $fs/usr/share/pixmaps |
psychomaniak@19086 | 47 ln -sf /usr/lib/$PACKAGE/$PACKAGE $fs/usr/bin |
psychomaniak@19086 | 48 ln -sf /usr/lib/$PACKAGE/browser/chrome/icons/default/default48.png \ |
psychomaniak@19086 | 49 $fs/usr/share/pixmaps/palemoon.png |
psychomaniak@19086 | 50 } |