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