wok diff firefox-langpack-zh_CN/receipt @ rev 7481
Removed glibc-locale from abiword depends. Added soft link for /usr/share/pixmaps/abiword.png to /usr/share/icons/abiword_48.png. Fixed error when running abiword on command line.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Dec 02 02:25:29 2010 +0000 (2010-12-02) |
parents | |
children | dab62c0f979a |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/firefox-langpack-zh_CN/receipt Thu Dec 02 02:25:29 2010 +0000 1.3 @@ -0,0 +1,32 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="firefox-langpack-zh_CN" 1.7 +VERSION="3.6" 1.8 +CATEGORY="network" 1.9 +SHORT_DESC="Chinese Language Package for firefox" 1.10 +MAINTAINER="lufeng369@gmail.com" 1.11 +DEPENDS="firefox" 1.12 +BUILD_DEPENDS="unzip" 1.13 +WEB_SITE="http://www.mozilla.com" 1.14 +TARBALL="zh-CN.xpi" 1.15 +Path=langpack-zh-CN@firefox.mozilla.org 1.16 +URL="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-$VERSION/linux-i686/xpi/$TARBALL" 1.17 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.18 +genpkg_rules() 1.19 +{ 1.20 + 1.21 + mkdir -p $fs/var/$Path 1.22 + wget $URL -P /tmp 1.23 + unzip /tmp/$TARBALL -d $fs/var/$Path 1.24 +} 1.25 +post_install() 1.26 +{ 1.27 +sed -i '/pref/s/en-US/zh-CN/' /etc/firefox/pref/firefox-l10n.js 1.28 +RealPath=/usr/lib/firefox-*/extensions/ 1.29 +mv -f /var/$Path $RealPath 1.30 +} 1.31 +post_remove() 1.32 +{ 1.33 +sed -i '/pref/s/zh-CN/en-US/' /etc/firefox/pref/firefox-l10n.js 1.34 +rm -rf "/usr/lib/firefox-*/extensions/$Path" 1.35 +} 1.36 \ No newline at end of file