talimat 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. # Description: 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.
  2. # URL: http://www.mozilla.org/thunderbird
  3. # Packager: milisarge
  4. # Depends on: 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
  5. run=(startup-notification hunspell)
  6. description="Stand-alone mail/news client based on the Mozilla codebase."
  7. name=thunderbird
  8. version=38.6.0
  9. release=1
  10. source=(http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$version/source/$name-$version.source.tar.bz2
  11. $name.desktop)
  12. build() {
  13. export LDFLAGS="$LDFLAGS -Wl,-rpath,/usr/lib/thunderbird"
  14. export PYTHON="/usr/bin/python2"
  15. cd $SRC
  16. ARCH=`uname -m`
  17. for lang in da de en-US es-ES fi fr it nb-NO nl pt-PT sv-SE
  18. do
  19. wget http://download.cdn.mozilla.net/pub/mozilla.org/$name/releases/$version/linux-$ARCH/xpi/$lang.xpi
  20. done
  21. cd $SRC/comm-*
  22. cat > mozconfig << "EOF"
  23. # If you have a multicore machine, the build may be faster if using parallel
  24. # jobs. The build system automatically adds -jN to the "make" flags, where N
  25. # is the number of CPU cores. The option below is therefore useless, unless
  26. # you want to use a smaller number of jobs:
  27. #mk_add_options MOZ_MAKE_FLAGS="-j1"
  28. # If you have installed DBus-Glib comment out this line:
  29. # ac_add_options --disable-dbus
  30. # If you have installed wireless-tools comment out this line:
  31. # ac_add_options --disable-necko-wifi
  32. # If you have installed libnotify comment out this line:
  33. #### ac_add_options --disable-libnotify
  34. # GStreamer is necessary for H.264 video playback in HTML5 Video Player;
  35. # to be enabled, also remember to set "media.gstreamer.enabled" to "true"
  36. # in about:config. If you have installed GStreamer 0.x.y, comment out this line:
  37. # ac_add_options --disable-gstreamer
  38. # or uncomment this line, if you have installed GStreamer 1.x.y
  39. #ac_add_options --enable-gstreamer=1.0
  40. # Uncomment these lines if you have installed optional dependencies:
  41. ac_add_options --enable-system-hunspell
  42. ac_add_options --enable-startup-notification
  43. # Comment out following option if you have PulseAudio installed
  44. # ac_add_options --disable-pulseaudio
  45. # If you want to compile the Mozilla Calendar, uncomment this line:
  46. #ac_add_options --enable-calendar
  47. # Comment out following options if you have not installed
  48. # recommended dependencies:
  49. ac_add_options --enable-system-sqlite
  50. ac_add_options --with-system-libevent
  51. ac_add_options --with-system-libvpx
  52. ac_add_options --with-system-nspr
  53. ac_add_options --with-system-nss
  54. ac_add_options --with-system-icu
  55. # The BLFS editors recommend not changing anything below this line:
  56. ac_add_options --prefix=/usr
  57. ac_add_options --enable-application=mail
  58. ac_add_options --disable-crashreporter
  59. ac_add_options --disable-installer
  60. ac_add_options --disable-updater
  61. ac_add_options --disable-debug
  62. ac_add_options --disable-tests
  63. ac_add_options --enable-optimize
  64. ac_add_options --enable-strip
  65. ac_add_options --enable-install-strip
  66. ac_add_options --enable-gio
  67. ac_add_options --enable-official-branding
  68. ac_add_options --enable-safe-browsing
  69. ac_add_options --enable-url-classifier
  70. ac_add_options --enable-system-cairo
  71. ac_add_options --enable-system-ffi
  72. ac_add_options --enable-system-pixman
  73. ac_add_options --with-pthreads
  74. ac_add_options --with-system-bz2
  75. ac_add_options --with-system-jpeg
  76. ac_add_options --with-system-png
  77. ac_add_options --with-system-zlib
  78. EOF
  79. sed -e '/^ftglyph.h/i ftfntfmt.h' \
  80. -e '/^freetype\/ftcache.h/a freetype\/ftfntfmt.h' \
  81. -i mozilla/config/system-headers
  82. SHELL=/bin/sh make -f client.mk
  83. SHELL=/bin/sh make -f client.mk DESTDIR=$PKG install INSTALL_SDK=
  84. mkdir -pv $PKG/usr/bin
  85. ln -sfv ../lib/$name-$version/thunderbird $PKG/usr/bin
  86. mkdir -pv $PKG/usr/share/applications
  87. install -Dm644 $SRC/thunderbird.desktop \
  88. $PKG/usr/share/applications/thunderbird.desktop
  89. for i in 16 22 24 32 48 256; do
  90. install -Dm644 other-licenses/branding/thunderbird/mailicon$i.png \
  91. $PKG/usr/share/icons/hicolor/${i}x${i}/apps/thunderbird.png
  92. done
  93. mkdir -p $PKG/etc/ld.so.conf.d
  94. echo "/usr/lib/$name-$version" > $PKG/etc/ld.so.conf.d/$name.conf
  95. cat > $PKG/usr/lib/thunderbird-$version/defaults/pref/vendor.js << "EOF"
  96. // Use LANG environment variable to choose locale
  97. pref("intl.locale.matchOS", true);
  98. EOF
  99. for lang in da de en-US es-ES fi fr it nb-NO nl pt-PT sv-SE
  100. do
  101. install -Dm644 $SRC/$lang.xpi \
  102. $PKG/usr/lib/thunderbird-$version/extensions/langpack-$lang@thunderbird.mozilla.org.xpi
  103. done
  104. chown -R 0:0 $PKG/usr/lib/$name-$version
  105. }