#Maintainer: Pedro Pinto (pnboy~AT~pinguix.com) pkgname=icedove-l10n-ja pkgver=2.0.0.19 pkgrel=1 zenver=54 arch=noarch source=(http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/$pkgver/linux-i686/xpi/ja.xpi ja.manifest) sourcetemplate=http://pnboy.pinguix.com/my_packages/zenwalk/icedove-l10n/$pkgver/ja/ options=('noextract' 'norequiredbuilder') extradepends=(alsa-lib atk audiofile avahi cxxlibs dbus dbus-glib directfb esound expat fontconfig freetype gcc gconf glib2 gnome-vfs gtk+2 icedove libbonobo libgnome libidl libjpeg libpng libxml2 nss-nspr openssl orbit2 pango popt xorg-libs xcb zlib) slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname (Icedove Japanese language)" "Japanese language package for Icedove." ) build() { mkdir -p $startdir/pkg/usr/lib/icedove/chrome cd $startdir/pkg/usr/lib/icedove/chrome unzip $startdir/src/ja.xpi mv chrome/ja.jar . jar xf ja.jar rm ja.jar sed -i -e 's/brandShortName.*/brandShortName "Icedove">/' \ -e 's/brandFullName.*/brandFullName "Icedove">/' \ locale/ja/branding/brand.dtd; \ sed -i -e 's/brandShortName.*/brandShortName=Icedove/' \ -e 's/brandFullName.*/brandFullName=Icedove/' \ locale/ja/branding/brand.properties; perl -e "s/Thunderbird/Icedove/g;" -pi $(find ./ -type f) perl -e "s/Mozilla //g;" -pi $(find ./ -type f) jar cfM ja.jar . rm -rf chrome* locale install.rdf cp $startdir/src/ja.manifest $startdir/pkg/usr/lib/icedove/chrome }