From 946c94af6d4ea4add368a8da7dff15ee70328636 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Thu, 5 Apr 2012 14:36:33 -0300 Subject: libre-testing/icedove-libre --- libre-testing/icedove-libre/PKGBUILD | 77 ++++++++++++++++++++++++++++ libre-testing/icedove-libre/channel-prefs.js | 9 ++++ libre-testing/icedove-libre/gcc47.patch | 44 ++++++++++++++++ libre-testing/icedove-libre/icedove.install | 12 +++++ libre-testing/icedove-libre/makefile.patch | 11 ++++ libre-testing/icedove-libre/mozconfig | 49 ++++++++++++++++++ libre-testing/icedove-libre/vendor.js | 12 +++++ 7 files changed, 214 insertions(+) create mode 100644 libre-testing/icedove-libre/PKGBUILD create mode 100644 libre-testing/icedove-libre/channel-prefs.js create mode 100644 libre-testing/icedove-libre/gcc47.patch create mode 100644 libre-testing/icedove-libre/icedove.install create mode 100644 libre-testing/icedove-libre/makefile.patch create mode 100644 libre-testing/icedove-libre/mozconfig create mode 100644 libre-testing/icedove-libre/vendor.js diff --git a/libre-testing/icedove-libre/PKGBUILD b/libre-testing/icedove-libre/PKGBUILD new file mode 100644 index 000000000..998e57d04 --- /dev/null +++ b/libre-testing/icedove-libre/PKGBUILD @@ -0,0 +1,77 @@ +# Maintainer : Márcio Silva +# Maintainer : André Silva + +# We're getting this from Debian Sid +_debname=icedove +_debver=10.0.3 +_debrel=3 +_debrepo=http://ftp.debian.org/debian/pool/main/ +debfile() { echo $@|sed -r 's@(.).*@\1/&/&@'; } + +_pkgname=$_debname +pkgname=$_debname-libre +pkgver=$_debver.$_debrel +pkgrel=1 +pkgdesc="A libre version of Debian Icedove, the Standalone Mail/News reader based on Mozilla thunderbird." +arch=('i586' 'i686' 'x86_64' 'mips64el') +license=('GPL2' 'MPL' 'LGPL') +depends=('alsa-lib' 'dbus-glib' 'desktop-file-utils' 'gtk2' 'hicolor-icon-theme' 'hunspell' 'libevent' 'libnotify' 'libvpx' 'libxt' 'mime-types' 'mozilla-common' 'nss' 'sqlite3' 'startup-notification') +makedepends=('unzip' 'zip' 'pkg-config' 'python2' 'wireless_tools' 'yasm' 'mesa' 'autoconf2.13' 'quilt') +optdepends=('libcanberra: for sound support') +url="http://packages.debian.org/source/sid/$_pkgname" +install=$_pkgname.install +source=("$_debrepo/`debfile $_debname`_$_debver.orig.tar.bz2" + "$_debrepo/`debfile $_debname`_$_debver-$_debrel.debian.tar.gz" + "$_debrepo/`debfile $_debname`_$_debver-$_debrel.dsc" + mozconfig + channel-prefs.js + vendor.js + makefile.patch + gcc47.patch) +md5sums=('3efe2ef4d5471aae3b79531ce8aee9dc' + 'cb3dba2916bdf2deb72248b0984c4302' + '57e21e997a75d85fcc0dcfe30b83f1ee' + 'fda2ff093ddbddf7f4cc3a1ed3bf9dcd' + '476ec205162340fb0679f522c9d31c3b' + '4eecc4fc5aafaf0da651a09eadc90bee' + '5a6282bb005d596aa4ab1884ac6b0517' + '66376a8e934013078f0e646e49614937') + +build() { + export QUILT_PATCHES=debian/patches + export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index' + export QUILT_DIFF_ARGS='--no-timestamps' + export LDFLAGS="$LDFLAGS -Wl,-rpath,/usr/lib/$_pkgname" + export PYTHON="/usr/bin/python2" + + mv comm-esr10 "$srcdir/mozilla-build" + mv debian "$srcdir/mozilla-build" + + cd "$srcdir/mozilla-build" + quilt push -a + + cp "$srcdir/mozconfig" .mozconfig + patch -Np1 -i "$srcdir/makefile.patch" + patch -Np1 -i "$srcdir/gcc47.patch" + rm "$srcdir"/mozilla-build/mail/locales/en-US/searchplugins/{amazondotcom,aol-web-search,bing,twitter,yahoo}.xml + + make -j1 -f client.mk build MOZ_MAKE_FLAGS="$MAKEFLAGS" +} + +package() { + cd "$srcdir/mozilla-build" + make -j1 -f client.mk DESTDIR="$pkgdir" install + + install -m644 "$srcdir/vendor.js" "$pkgdir/usr/lib/$_pkgname/defaults/pref" + install -m644 "$srcdir/channel-prefs.js" "$pkgdir/usr/lib/$_pkgname/defaults/pref" # Recommend free addons + +# for i in 16x16 22x22 24x24 32x32 48x48 256x256; do +# install -Dm644 "$debian/app-icons/$_pkgname${i/x*/}.png" "/usr/share/icons/hicolor/$i/apps/$_pkgname.png" +# done +# install -Dm644 "$debian/app-icons/$_pkgname_icon.svg" "/usr/share/icons/hicolor/scalable/apps/$_pkgname.svg" + + rm -rf "$pkgdir"/usr/lib/$_pkgname/{dictionaries,hyphenation} + ln -sf /usr/share/hunspell "$pkgdir/usr/lib/$_pkgname/dictionaries" + ln -sf /usr/share/hyphen "$pkgdir/usr/lib/$_pkgname/hyphenation" + rm -r "$pkgdir"/usr/{include,lib/$_pkgname-devel,share/idl} # We don't want the development stuff +} diff --git a/libre-testing/icedove-libre/channel-prefs.js b/libre-testing/icedove-libre/channel-prefs.js new file mode 100644 index 000000000..13b1ba388 --- /dev/null +++ b/libre-testing/icedove-libre/channel-prefs.js @@ -0,0 +1,9 @@ +//@line 2 "/build/src/comm-release/mail/app/profile/channel-prefs.js" +pref("app.update.channel", "default"); + +//Recommend free addons +pref("extensions.getAddons.get.url", "http://www.gnu.org/software/gnuzilla/addons.html"); +pref("extensions.getAddons.search.browseURL", "http://www.gnu.org/software/gnuzilla/addons.html"); +pref("extensions.getAddons.search.url", "http://www.gnu.org/software/gnuzilla/addons.html"); +pref("extensions.getMoreThemesURL", "http://www.gnu.org/software/gnuzilla/addons.html"); +pref("extensions.webservice.discoverURL", "http://www.gnu.org/software/gnuzilla/addons.html"); diff --git a/libre-testing/icedove-libre/gcc47.patch b/libre-testing/icedove-libre/gcc47.patch new file mode 100644 index 000000000..9824e6ab2 --- /dev/null +++ b/libre-testing/icedove-libre/gcc47.patch @@ -0,0 +1,44 @@ +--- mozilla-build.orig/mozilla/ipc/chromium/src/base/file_util.cc 2012-03-06 14:26:03.000000000 -0200 ++++ mozilla-build/mozilla/ipc/chromium/src/base/file_util.cc 2012-04-04 18:50:02.094431651 -0300 +@@ -8,7 +8,7 @@ + #include + #endif + #include +-#if defined(ANDROID) ++#if defined(ANDROID) || defined(OS_POSIX) + #include + #endif + +--- mozilla-build.orig/mozilla/ipc/chromium/src/base/message_pump_libevent.cc 2012-03-06 14:26:03.000000000 -0200 ++++ mozilla-build/mozilla/ipc/chromium/src/base/message_pump_libevent.cc 2012-04-04 19:55:24.140455837 -0300 +@@ -6,6 +6,7 @@ + + #include + #include ++#include + + #include "eintr_wrapper.h" + #include "base/logging.h" + +--- mozilla-build.orig/mozilla/ipc/chromium/src/base/file_util_linux.cc 2012-03-06 14:26:03.000000000 -0200 ++++ mozilla-build/mozilla/ipc/chromium/src/base/file_util_linux.cc 2012-04-04 20:49:49.756138306 -0300 +@@ -5,6 +5,7 @@ + #include "base/file_util.h" + + #include ++#include + + #include + #include + +--- mozilla-build.orig/mozilla/ipc/chromium/src/base/time_posix.cc 2012-03-06 14:26:03.000000000 -0200 ++++ mozilla-build/mozilla/ipc/chromium/src/base/time_posix.cc 2012-04-04 20:55:12.678037291 -0300 +@@ -8,6 +8,7 @@ + #include + #endif + #include ++#include + #ifdef ANDROID + #include + #else + diff --git a/libre-testing/icedove-libre/icedove.install b/libre-testing/icedove-libre/icedove.install new file mode 100644 index 000000000..4d4a283db --- /dev/null +++ b/libre-testing/icedove-libre/icedove.install @@ -0,0 +1,12 @@ +post_install() { + update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} diff --git a/libre-testing/icedove-libre/makefile.patch b/libre-testing/icedove-libre/makefile.patch new file mode 100644 index 000000000..284ca68c2 --- /dev/null +++ b/libre-testing/icedove-libre/makefile.patch @@ -0,0 +1,11 @@ +--- mozilla-build/debian/icedove-branding/Makefile.in 2012-04-05 06:50:17.708640714 -0300 ++++ mozilla-build/debian/icedove-branding/Makefile.in 2012-04-05 06:50:41.902614597 -0300 +@@ -38,7 +38,7 @@ + # Branding Makefile for Icedove branding + + DEPTH = ../../.. +-topsrcdir = ../../../ ++topsrcdir = ../../ + srcdir = @srcdir@ + VPATH = @srcdir@ + diff --git a/libre-testing/icedove-libre/mozconfig b/libre-testing/icedove-libre/mozconfig new file mode 100644 index 000000000..fc00d1fdd --- /dev/null +++ b/libre-testing/icedove-libre/mozconfig @@ -0,0 +1,49 @@ +mk_add_options MOZ_CO_PROJECT=mail +ac_add_options --enable-application=mail + +ac_add_options --prefix=/usr +ac_add_options --libdir=/usr/lib + +# System libraries +ac_add_options --with-system-nspr +ac_add_options --with-system-nss +ac_add_options --with-system-jpeg +ac_add_options --with-system-zlib +ac_add_options --with-system-bz2 +ac_add_options --with-system-png +ac_add_options --with-system-libevent +ac_add_options --with-system-libvpx +ac_add_options --enable-system-hunspell +ac_add_options --enable-system-sqlite +ac_add_options --enable-system-ffi +ac_add_options --enable-system-cairo +ac_add_options --enable-system-pixman +ac_add_options --with-pthreads + +# Features +ac_add_options --enable-startup-notification +ac_add_options --enable-gio + +ac_add_options --disable-gnomevfs +ac_add_options --disable-crashreporter +ac_add_options --disable-updater +ac_add_options --disable-tests +ac_add_options --disable-mochitest +ac_add_options --disable-installer + +# Optimization +ac_add_options --enable-optimize + +export MOZILLA_OFFICIAL=1 +mk_add_options MOZILLA_OFFICIAL=1 + +# Icedove +ac_add_options --disable-official-branding +ac_add_options --with-branding=debian/icedove-branding + +# Parabola +ac_add_options --disable-safe-browsing +export BUILD_OFFICIAL=1 +mk_add_options BUILD_OFFICIAL=1 + +# Build-generated \ No newline at end of file diff --git a/libre-testing/icedove-libre/vendor.js b/libre-testing/icedove-libre/vendor.js new file mode 100644 index 000000000..279bdc158 --- /dev/null +++ b/libre-testing/icedove-libre/vendor.js @@ -0,0 +1,12 @@ +// Forbid application updates +lockPref("app.update.enabled", false); + +// Use LANG environment variable to choose locale +pref("intl.locale.matchOS", true); + +// Disable default mailer checking. +pref("mail.shell.checkDefaultMail", false); + +// Don't disable our bundled extensions in the application directory +pref("extensions.autoDisableScopes", 11); +pref("extensions.shownSelectionUI", true); -- cgit v1.2.3-54-g00ecf