talimat 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Description: Mozilla.org'dan bağımsız web tarayıcısı
  2. # URL: http://www.mozilla.com/firefox/
  3. # Packager: alihan-ozturk28@hotmail.com
  4. # Depends on: autoconf2 libbluray pulseaudio gconf yasm sqlite libvpx libevent nss alsa-lib gtk2 gtk3 xorg-app zip unzip gstreamer1 gstreamer1-plugins-base gstreamer1-plugins-good gstreamer1-plugins-libav
  5. name=firefox
  6. version=53.0
  7. release=1
  8. source=(https://ftp.mozilla.org/pub/firefox/releases/$version/source/firefox-$version.source.tar.xz
  9. firefox-install-dir.patch firefox.desktop)
  10. build() {
  11. cd firefox-$version
  12. sed -i '/^ftfntfmt.h/ i freetype/ftfntfmt.h' config/system-headers
  13. # stupid workaround
  14. sed -i '2,7d' js/src/configure
  15. patch -p1 -i $SRC/firefox-install-dir.patch
  16. cat <<- EOF > .mozconfig
  17. mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-shared
  18. mk_add_options MOZ_MAKE_FLAGS="-j1"
  19. ac_add_options --prefix=/usr
  20. ac_add_options --enable-default-toolkit=cairo-gtk3
  21. ac_add_options --with-system-jpeg
  22. ac_add_options --with-system-zlib
  23. ac_add_options --with-system-png
  24. ac_add_options --with-system-nspr
  25. ac_add_options --with-system-nss
  26. ac_add_options --with-system-cairo
  27. ac_add_options --enable-system-ffi
  28. ac_add_options --enable-system-pixman
  29. ac_add_options --enable-system-sqlite
  30. ac_add_options --enable-alsa
  31. ac_add_options --with-pthreads
  32. ac_add_options --enable-official-branding
  33. ac_add_options --with-distribution-id=org.milislinux
  34. ac_add_options --enable-extensions=default,-gnomevfs
  35. ac_add_options --disable-tests
  36. ac_add_options --disable-dbus
  37. ac_add_options --disable-debug
  38. ac_add_options --disable-updater
  39. ac_add_options --disable-gnomeui
  40. ac_add_options --disable-crashreporter
  41. ac_add_options --disable-necko-wifi
  42. ac_add_options --disable-pulseaudio
  43. ac_add_options --disable-gconf
  44. ac_add_options --disable-rust
  45. EOF
  46. SHELL=/bin/sh make -f client.mk build
  47. SHELL=/bin/sh make -f client.mk DESTDIR=$PKG install
  48. mkdir -p $PKG/usr/share/pixmaps
  49. ln -s /usr/lib/firefox/browser/chrome/icons/default/default48.png $PKG/usr/share/pixmaps/firefox_default48.png
  50. install -D -m 0644 $SRC/firefox.desktop $PKG/usr/share/applications/firefox.desktop
  51. # Remove crap
  52. rm $PKG/usr/lib/firefox/browser/features/{firefox@getpocket.com.xpi,webcompat@mozilla.org.xpi}
  53. }