pakur.sh 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. SHELL=/bin/bash DESTDIR="$PKG" ./mach install
  2. cat > /tmp/zzz << "EOF"
  3. // Use LANG environment variable to choose locale
  4. pref("intl.locale.requested", "");
  5. // Use system-provided dictionaries
  6. pref("spellchecker.dictionary_path", "/usr/share/hunspell");
  7. // Disable default browser checking.
  8. pref("browser.shell.checkDefaultBrowser", false);
  9. // Don't disable our bundled extensions in the application directory
  10. pref("extensions.autoDisableScopes", 11);
  11. pref("extensions.shownSelectionUI", true);
  12. EOF
  13. _vendorjs="$PKG/usr/lib/firefox/browser/defaults/preferences/vendor.js"
  14. install -Dm644 /tmp/zzz "$_vendorjs"
  15. cat > /tmp/zzz << "EOF"
  16. [Global]
  17. id=milislinux
  18. version=1.0
  19. about=Mozilla Firefox for Milis Linux
  20. [Preferences]
  21. app.distributor=milislinux
  22. app.distributor.channel=firefox
  23. app.partner.milislinux=milislinux
  24. EOF
  25. _distini="$PKG/usr/lib/$isim/distribution/distribution.ini"
  26. install -Dm644 /tmp/zzz "$_distini"
  27. for i in 16 22 24 32 48 64 128 256; do
  28. install -Dm644 browser/branding/official/default$i.png \
  29. "$PKG/usr/share/icons/hicolor/${i}x${i}/apps/$isim.png"
  30. done
  31. install -Dm644 browser/branding/official/content/about-logo.png \
  32. "$PKG/usr/share/icons/hicolor/192x192/apps/$isim.png"
  33. install -Dm644 browser/branding/official/content/about-logo@2x.png \
  34. "$PKG/usr/share/icons/hicolor/384x384/apps/$isim.png"
  35. install -Dm644 ../firefox-symbolic.svg \
  36. "$PKG/usr/share/icons/hicolor/symbolic/apps/$isim-symbolic.svg"
  37. install -Dm644 ../$isim.desktop \
  38. "$PKG/usr/share/applications/$isim.desktop"
  39. # Install a wrapper to avoid confusion about binary path
  40. cat > /tmp/zzz << "EOF"
  41. #!/bin/sh
  42. exec /usr/lib/firefox/firefox "\$@"
  43. EOF
  44. install -Dm755 /tmp/zzz "$PKG/usr/bin/firefox"
  45. # Replace duplicate binary with wrapper
  46. # https://bugzilla.mozilla.org/show_bug.cgi?id=658850
  47. ln -srf "$PKG/usr/bin/firefox" "$PKG/usr/lib/$isim/firefox-bin"
  48. install -Dm644 $SRC/firefox-tr-${surum}.xpi $PKG/usr/lib/firefox/browser/extensions/langpack-tr@firefox.mozilla.org.xpi