wok-next annotate palemoon/receipt @ rev 20732

Some python-* packaged using pip: actualize $VERSION in genpkg_rules()
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue May 29 17:01:41 2018 +0300 (2018-05-29)
parents c0521c689857
children cce75420e564
rev   line source
psychomaniak@19086 1 # SliTaz package receipt.
psychomaniak@19086 2
psychomaniak@19086 3 PACKAGE="palemoon"
psychomaniak@20376 4 VERSION="27.5.0"
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"
pascal@19091 13 PROVIDE="browser-html5"
psychomaniak@19086 14
psychomaniak@19386 15 DEPENDS="gtk+"
psychomaniak@19086 16 BUILD_DEPENDS="autoconf213 gtk+-dev yasm zip unzip iw dbus-dev dbus-glib-dev \
al@20454 17 iw libpng16-dev gstreamer0 gstreamer0-dev gst0-plugins-base-dev gst0-plugins-base \
al@20502 18 libvpx-dev mesa-dev virtualenv zlib-dev bzip2-dev python-dev \
al@20491 19 xorg-pixman xorg-pixman-dev libffi libffi-dev libjpeg-turbo-dev \
al@20721 20 xorg-libXt-dev coreutils-file-special"
al@20721 21 # sqlite sqlite-dev libevent libevent-dev
psychomaniak@19086 22
al@20491 23 compile_rules() {
al@20491 24
pascal@19095 25 find -type f | grep duckduckgo | xargs \
pascal@19095 26 sed -i 's|name="t" value="palemoon"|name="t" value="slitaz"|'
psychomaniak@19086 27 cp $stuff/mozconfig $src
al@20491 28 case $ARCH in
al@20491 29 x86_64) sed -i 's|i686|nocona|' $src/mozconfig;;
al@20491 30 esac
psychomaniak@19220 31 chmod -R +x build/autoconf/* python/*
psychomaniak@19086 32 find . -name '*.sh' -exec chmod +x {} \;
al@20491 33 export CFLAGS=${CFLAGS/486/686}
al@20491 34 export CXXFLAGS=${CXXFLAGS/486/686}
psychomaniak@19086 35 export MOZBUILD_STATE_PATH="$src/mozbuild"
psychomaniak@19086 36 export MOZCONFIG="$src/mozconfig"
psychomaniak@20045 37 export CPPFLAGS="$CPPFLAGS"
psychomaniak@19086 38 export MAKEFLAGS="$MAKEFLAGS"
psychomaniak@19086 39 python2 mach configure
psychomaniak@19086 40 python2 mach build || echo "Next =>"
psychomaniak@19086 41 python2 mach build
psychomaniak@19086 42 cd $src/obj-i686-pc-linux-gnu
psychomaniak@19086 43 ( make package | egrep -v 'error|ERROR' ) > ./instLOG 2>&1
psychomaniak@19086 44 cd dist
psychomaniak@19086 45 for i in bin lib share/applications;
psychomaniak@19086 46 do install -d $DESTDIR/usr/$i; done
psychomaniak@19086 47 cp -a $PACKAGE $DESTDIR/usr/lib/$PACKAGE
psychomaniak@19086 48 cp -a $src/browser/branding/official/$PACKAGE.desktop \
psychomaniak@19086 49 $install/usr/share/applications
psychomaniak@19086 50 }
psychomaniak@19086 51
al@20491 52 genpkg_rules() {
psychomaniak@19086 53 cp -a $install/* $fs
psychomaniak@19090 54 mkdir -p $fs/usr/share/pixmaps
psychomaniak@19386 55 rm -f /usr/lib/$PACKAGE/$PACKAGE-bin
psychomaniak@19086 56 ln -sf /usr/lib/$PACKAGE/$PACKAGE $fs/usr/bin
psychomaniak@19086 57 ln -sf /usr/lib/$PACKAGE/browser/chrome/icons/default/default48.png \
psychomaniak@19086 58 $fs/usr/share/pixmaps/palemoon.png
pascal@19092 59 ln -s palemoon $fs/usr/bin/browser-html5
psychomaniak@19086 60 }