#Maintainer: Pedro Pinto (pnboy~AT~pinguix.com) pkgname=icedove pkgver=2.0.0.14 pkgrel=1 zenver=52 arch=i486 source=(http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/${pkgver}/source/thunderbird-${pkgver}-source.tar.bz2 remove.nonfree http://pnboy.pinguix.com/my_packages/zenwalk/icedove/$pkgver/icedove-branding-2.0.0.x.tar.gz firefox-2.0-link-layout.patch thunderbird2icedove.diff http://pnboy.pinguix.com/my_packages/zenwalk/icedove/$pkgver/classic_tb.jar icedove.desktop accelerators.patch) docs=(LEGAL LICENSE README.txt) slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname (free/unbranded thunderbird mail/news/rss clone)" "Icedove is an unbranded Thunderbird mail client suitable for free" "distribution. The goal of Thunderbird is to produce a cross platform" "stand-alone mail application using the XUL user interface language." ) build() { cd $startdir/src/mozilla tar xzf $startdir/src/icedove-branding-2.0.0.x.tar.gz sh $startdir/src/remove.nonfree patch -Np0 < ${startdir}/src/thunderbird2icedove.diff patch -Np1 -i ${startdir}/src/firefox-2.0-link-layout.patch patch -Np0 -i ${startdir}/src/accelerators.patch cat <<'EOF' >>.mozconfig ac_add_options --prefix=/usr ac_add_options --mandir=/usr/man ac_add_options --infodir=/usr/info ac_add_options --enable-optimize="${CFLAGS}" ac_add_options --with-distribution-id=Zenwalk ac_add_options --with-system-jpeg ac_add_options --with-system-zlib ac_add_options --with-system-png ac_add_options --with-system-mng ac_add_options --with-pthreads ac_add_options --disable-debug ac_add_options --disable-tests ac_add_options --disable-installer ac_add_options --disable-xprint ac_add_options --enable-default-toolkit=gtk2 ac_add_options --enable-strip ac_add_options --enable-pango ac_add_options --enable-xft ac_add_options --enable-system-cairo ac_add_options --enable-svg ac_add_options --enable-canvas ac_add_options --enable-crypto ac_add_options --enable-extensions="wallet,spellcheck,xmlextras" ac_add_options --enable-image-decoders="png,gif,jpeg,bmp" ac_add_options --enable-necko-protocols="http,ftp,file,jar,viewsource,res,data" ac_add_options --enable-reorder ac_add_options --enable-strip ac_add_options --enable-strip-libs ac_add_options --with-pthreads ac_add_options --enable-xinerama ac_add_options --with-user-appdir=.thunderbird ac_add_options --enable-application=mail ac_add_options --enable-official-branding EOF export MOZ_APP_NAME="icedove" ./configure make || return 1 make install DESTDIR=$startdir/pkg MOZ_PKG_APPNAME="icedove" # Relocate (cd $startdir/pkg/usr/lib/; mv thunderbird-$pkgver $pkgname; ln -s $pkgname $pkgname-$pkgver; ln -s $pkgname thunderbird; ln -s $pkgname thunderbird-$pkgver) # Deleting what's already provided by xulrunner rm -rf $startdir/pkg/usr/share rm -rf $startdir/pkg/usr/include rm -rf $startdir/pkg/usr/lib/pkgconfig # Replace included dictionaries with a link to zenwalk's dictionaries, patch for locales match, rename binary ( cd $startdir/pkg/usr/lib/$pkgname rm -rf dictionaries ln -s ../../share/myspell dictionaries sed -i -e 's/pref("intl.locale.matchOS", false);/pref("intl.locale.matchOS", true);/g' $startdir/pkg/usr/lib/$pkgname/greprefs/all.js mv thunderbird-bin $pkgname-bin; ln -s $pkgname-bin thunderbird-bin ) # rename binaries ( cd $startdir/pkg/usr/bin mv thunderbird $pkgname; ln -s $pkgname thunderbird mv thunderbird-config $pkgname-config; ln -s $pkgname-config thunderbird-config ) # Add tango-icons if [ -f $startdir/src/classic_tb.jar ]; then cp $startdir/src/classic_tb.jar $startdir/pkg/usr/lib/$pkgname/chrome/classic.jar fi mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps/ cd $startdir/pkg/usr/share/icons/hicolor/48x48/apps/ ln -s ../../../../../lib/icedove/icons/mozicon50.png icedove.png mkdir -p $startdir/pkg/usr/share/applications/ cp $startdir/src/icedove.desktop $startdir/pkg/usr/share/applications/ cp $startdir/pkg/usr/lib/$pkgname/defaults/isp/rss.rdf $startdir/pkg/usr/lib/$pkgname/isp/ cp $startdir/pkg/usr/lib/$pkgname/isp/en-US/gmail.rdf $startdir/pkg/usr/lib/$pkgname/isp/ echo 'user_pref("network.protocol-handler.app.http","iceweasel");' >> $startdir/pkg/usr/lib/icedove/greprefs/all.js echo 'user_pref("network.protocol-handler.app.https","iceweasel");' >> $startdir/pkg/usr/lib/icedove/greprefs/all.js mkdir -p $startdir/pkg/etc/ld.so.conf.d/ echo "/usr/lib/icedove" > $startdir/pkg/etc/ld.so.conf.d/icedove.conf }