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