wok diff firefox-official-ru/receipt @ rev 18682

Add mps-youtube (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Dec 09 18:50:42 2015 +0100 (2015-12-09)
parents
children 6e9e0c6034a8
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/firefox-official-ru/receipt	Wed Dec 09 18:50:42 2015 +0100
     1.3 @@ -0,0 +1,53 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="firefox-official-ru"
     1.7 +lang="ru"
     1.8 +VERSION="42.0"
     1.9 +CATEGORY="network"
    1.10 +SHORT_DESC="Official Firefox build by the Mozilla foundation (Russian language)"
    1.11 +MAINTAINER="al.bobylev@gmail.com"
    1.12 +LICENSE="MPL2"
    1.13 +WEB_SITE="http://www.mozilla.org/firefox"
    1.14 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.15 +WGET_URL="http://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-i686/$lang/firefox-$VERSION.tar.bz2"
    1.16 +TAGS="web-browser"
    1.17 +PROVIDE="firefox-official"
    1.18 +HOST_ARCH="i486"
    1.19 +
    1.20 +DEPENDS="gtk+"
    1.21 +
    1.22 +# Rules to configure and make the package.
    1.23 +compile_rules()
    1.24 +{
    1.25 +	mkdir -p \
    1.26 +		$install/usr/bin \
    1.27 +		$install/usr/lib/firefox-$VERSION \
    1.28 +		$install/usr/share/applications \
    1.29 +		$install/usr/share/icons/hicolor/128x128/apps
    1.30 +
    1.31 +	cp -a $src/* $install/usr/lib/firefox-$VERSION
    1.32 +
    1.33 +	# /usr/bin/firefox-official
    1.34 +	ln -s /usr/lib/firefox-$VERSION/firefox $install/usr/bin/firefox-official
    1.35 +
    1.36 +	# Icons
    1.37 +	ln -s /usr/lib/firefox-$VERSION/browser/icons/mozicon128.png \
    1.38 +		$install/usr/share/icons/hicolor/128x128/apps/firefox-official.png
    1.39 +	for size in 16 32 48; do
    1.40 +		icon_folder="$install/usr/share/icons/hicolor/${size}x$size/apps"
    1.41 +		mkdir -p $icon_folder
    1.42 +		ln -s /usr/lib/firefox-$VERSION/browser/chrome/icons/default/default$size.png \
    1.43 +			$icon_folder/firefox-official.png
    1.44 +	done
    1.45 +
    1.46 +	# Remove updater files (user can't upgrade anyway)
    1.47 +	rm -f $install/usr/lib/firefox-$VERSION/update*
    1.48 +
    1.49 +	cp $stuff/firefox-official.desktop $install/usr/share/applications
    1.50 +}
    1.51 +
    1.52 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.53 +genpkg_rules()
    1.54 +{
    1.55 +	cp -a $install/* $fs
    1.56 +}