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