#Maintainer: Pedro Pinto (pnboy~AT~pinguix.com) pkgname=icedove-l10n-bg 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/bg.xpi bg.manifest) sourcetemplate=http://pnboy.pinguix.com/my_packages/zenwalk/icedove-l10n/$pkgver/bg/ 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 Bulgarian language)" "Bulgarian language package for Icedove." ) build() { mkdir -p $startdir/pkg/usr/lib/icedove/chrome cd $startdir/pkg/usr/lib/icedove/chrome unzip $startdir/src/bg.xpi mv chrome/bg.jar . jar xf bg.jar rm bg.jar sed -i -e 's/brandShortName.*/brandShortName "Icedove">/' \ -e 's/brandFullName.*/brandFullName "Icedove">/' \ locale/bg/branding/brand.dtd; \ sed -i -e 's/brandShortName.*/brandShortName=Icedove/' \ -e 's/brandFullName.*/brandFullName=Icedove/' \ locale/bg/branding/brand.properties; perl -e "s/Thunderbird/Icedove/g;" -pi $(find ./ -type f) perl -e "s/Mozilla //g;" -pi $(find ./ -type f) jar cfM bg.jar . rm -rf chrome* locale install.rdf cp $startdir/src/bg.manifest $startdir/pkg/usr/lib/icedove/chrome }