2017-10-27 20:46:27 +02:00
# Tanı m: Thunderbird, Mozilla kod tabanı na dayanan tek başı na bir posta/haber istemcisidir. HTML e-postaları nı görüntülemek ve oluşturmak için Gecko rendering motorunu kullanı r.
2016-02-24 01:27:23 +01:00
# URL: http://www.mozilla.org/thunderbird
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler: alsa-lib gtk2 zip unzip libevent libvpx nspr nss yasm dbus-glib doxygen gstreamer-plugins-good gstreamer-plugins-ffmpeg libnotify openjdk startup-notification hunspell sqlite wireless-tools xorg-libx11 xorg-libxt xorg-libxrandr desktop-file-utils hicolor-icon-theme shared-mime-info pulseaudio
2016-02-24 01:27:23 +01:00
2017-10-28 14:10:23 +02:00
isim=thunderbird
surum=38.6.0
devir=1
2016-02-24 01:27:23 +01:00
2017-10-28 14:10:23 +02:00
kaynak=(http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$surum/source/$isim-$surum.source.tar.bz2
$isim.desktop)
2016-02-24 01:27:23 +01:00
2017-10-27 23:59:41 +02:00
derle() {
2016-02-24 01:27:23 +01:00
export LDFLAGS="$LDFLAGS -Wl,-rpath,/usr/lib/thunderbird"
export PYTHON="/usr/bin/python2"
cd $SRC
ARCH=`uname -m`
for lang in da de en-US es-ES fi fr it nb-NO nl pt-PT sv-SE
do
2017-10-28 14:10:23 +02:00
wget http://download.cdn.mozilla.net/pub/mozilla.org/$isim/releases/$surum/linux-$ARCH/xpi/$lang.xpi
2016-02-24 01:27:23 +01:00
done
cd $SRC/comm-*
cat > mozconfig << "EOF"
# If you have a multicore machine, the build may be faster if using parallel
# jobs. The build system automatically adds -jN to the "make" flags, where N
# is the number of CPU cores. The option below is therefore useless, unless
# you want to use a smaller number of jobs:
#mk_add_options MOZ_MAKE_FLAGS="-j1"
# If you have installed DBus-Glib comment out this line:
# ac_add_options --disable-dbus
# If you have installed wireless-tools comment out this line:
# ac_add_options --disable-necko-wifi
# If you have installed libnotify comment out this line:
#### ac_add_options --disable-libnotify
# GStreamer is necessary for H.264 video playback in HTML5 Video Player;
# to be enabled, also remember to set "media.gstreamer.enabled" to "true"
# in about:config. If you have installed GStreamer 0.x.y, comment out this line:
# ac_add_options --disable-gstreamer
# or uncomment this line, if you have installed GStreamer 1.x.y
#ac_add_options --enable-gstreamer=1.0
# Uncomment these lines if you have installed optional dependencies:
ac_add_options --enable-system-hunspell
ac_add_options --enable-startup-notification
# Comment out following option if you have PulseAudio installed
# ac_add_options --disable-pulseaudio
# If you want to compile the Mozilla Calendar, uncomment this line:
#ac_add_options --enable-calendar
# Comment out following options if you have not installed
# recommended dependencies:
ac_add_options --enable-system-sqlite
ac_add_options --with-system-libevent
ac_add_options --with-system-libvpx
ac_add_options --with-system-nspr
ac_add_options --with-system-nss
ac_add_options --with-system-icu
# The BLFS editors recommend not changing anything below this line:
ac_add_options --prefix=/usr
ac_add_options --enable-application=mail
ac_add_options --disable-crashreporter
ac_add_options --disable-installer
ac_add_options --disable-updater
ac_add_options --disable-debug
ac_add_options --disable-tests
ac_add_options --enable-optimize
ac_add_options --enable-strip
ac_add_options --enable-install-strip
ac_add_options --enable-gio
ac_add_options --enable-official-branding
ac_add_options --enable-safe-browsing
ac_add_options --enable-url-classifier
ac_add_options --enable-system-cairo
ac_add_options --enable-system-ffi
ac_add_options --enable-system-pixman
ac_add_options --with-pthreads
ac_add_options --with-system-bz2
ac_add_options --with-system-jpeg
ac_add_options --with-system-png
ac_add_options --with-system-zlib
EOF
sed -e '/^ftglyph.h/i ftfntfmt.h' \
-e '/^freetype\/ftcache.h/a freetype\/ftfntfmt.h' \
-i mozilla/config/system-headers
SHELL=/bin/sh make -f client.mk
SHELL=/bin/sh make -f client.mk DESTDIR=$PKG install INSTALL_SDK=
mkdir -pv $PKG/usr/bin
2017-10-28 14:10:23 +02:00
ln -sfv ../lib/$isim-$surum/thunderbird $PKG/usr/bin
2016-02-24 01:27:23 +01:00
mkdir -pv $PKG/usr/share/applications
install -Dm644 $SRC/thunderbird.desktop \
$PKG/usr/share/applications/thunderbird.desktop
for i in 16 22 24 32 48 256; do
install -Dm644 other-licenses/branding/thunderbird/mailicon$i.png \
$PKG/usr/share/icons/hicolor/${i}x${i}/apps/thunderbird.png
done
mkdir -p $PKG/etc/ld.so.conf.d
2017-10-28 14:10:23 +02:00
echo "/usr/lib/$isim-$surum" > $PKG/etc/ld.so.conf.d/$isim.conf
cat > $PKG/usr/lib/thunderbird-$surum/defaults/pref/vendor.js << "EOF"
2016-02-24 01:27:23 +01:00
// Use LANG environment variable to choose locale
pref("intl.locale.matchOS", true);
EOF
for lang in da de en-US es-ES fi fr it nb-NO nl pt-PT sv-SE
do
install -Dm644 $SRC/$lang.xpi \
2017-10-28 14:10:23 +02:00
$PKG/usr/lib/thunderbird-$surum/extensions/langpack-$lang@thunderbird.mozilla.org.xpi
2016-02-24 01:27:23 +01:00
done
2017-10-28 14:10:23 +02:00
chown -R 0:0 $PKG/usr/lib/$isim-$surum
2016-02-24 01:27:23 +01:00
}