milis/talimatname/genel/f/firefox/talimat

177 lines
5.5 KiB
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: Mozilla.org'dan Bağımsız Web Tarayıcısı
2016-02-24 01:27:23 +01:00
# URL: http://www.mozilla.com/firefox/
2017-10-27 20:46:27 +02:00
# Paketçi: Cihan Alkan
# Gerekler: libvpx libevent rust cargo autoconf2 pulseaudio gconf yasm sqlite libvpx libevent nss alsa-lib gtk2 gtk3 xorg-app zip unzip gstreamer gstreamer-plugins-base gstreamer-plugins-good gstreamer1-plugins-libav
2016-02-24 01:27:23 +01:00
2017-10-28 14:10:23 +02:00
isim=firefox
surum=55.0.3
devir=3
2017-09-21 20:59:33 +02:00
2017-10-28 14:10:23 +02:00
kaynak=(https://ftp.mozilla.org/pub/mozilla.org/$isim/releases/$surum/source/firefox-$surum.source.tar.xz
http://download.cdn.mozilla.net/pub/$isim/releases/$surum/linux-x86_64/xpi/tr.xpi
2017-09-21 20:59:33 +02:00
https://github.com/oltulu/milis/raw/master/firefox/mozilla.tar.xz::mozilla-milis.tar.xz)
2017-10-27 23:59:41 +02:00
derle() {
2017-09-21 20:59:33 +02:00
2017-10-28 14:10:23 +02:00
cd $isim-$surum
2017-09-21 20:59:33 +02:00
# Locale autodetect
sed -i '/intl.locale.matchOS/s/false/true/' modules/libpref/init/all.js
cat > mozconfig << "EOF"
# Çok çekirdekli bir işlemciniz varsa, tüm çekirdekler varsayılan olarak kullanılacaktır.
# İsterseniz, kullanılan çekirdek sayısını azaltabilirsiniz. Bunun için bir sonraki satır
#başındaki # işaretini kaldırın ve geçerli CPU çekirdeği sayısını 1'e ayarlayın.
#mk_add_options MOZ_MAKE_FLAGS="-j1"
# If you have installed dbus-glib, comment out this line:
ac_add_options --disable-dbus
# Dbus-glib'yi kurduysanız ve kablosuz araçları yüklediyseniz
# ve coğrafi konum web servislerini kullanmak istiyorsanız,
#bir alt satırıdaki # işaretini kaldırın.
ac_add_options --disable-necko-wifi
# Gtk +-2 ile oluşturmak istiyorsanız bir alt satırıdaki # işaretini kaldırın.
#ac_add_options --enable-default-toolkit=cairo-gtk2
# İsteğe bağlı bağımlılıkları yüklediyseniz bu satırların işaretini kaldırın::
#ac_add_options --enable-system-hunspell
#ac_add_options --enable-startup-notification
# PulseAudio kurulu ise aşağıdaki seçeneği açın
2017-09-28 19:13:12 +02:00
#ac_add_options --disable-pulseaudio
2017-09-21 20:59:33 +02:00
# GConf yüklediyseniz, bu satırıın
ac_add_options --disable-gconf
# Önerilen bağımlılıkları yüklemediyseniz # işaretini kaldırın:
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
# If you are going to apply the patch for system graphite
# and system harfbuzz, uncomment these lines:
#ac_add_options --with-system-graphite2
#ac_add_options --with-system-harfbuzz
# Stripping is now enabled by default.
# Uncomment these lines if you need to run a debugger:
#ac_add_options --disable-strip
#ac_add_options --disable-install-strip
# Bu satırın altındaki herhangi bir şeyi değiştirmemenizi öneriyoruz:
ac_add_options --prefix=/usr
ac_add_options --enable-application=browser
ac_add_options --disable-crashreporter
ac_add_options --disable-updater
ac_add_options --disable-tests
# ac_add_options --enable-gio
ac_add_options --enable-official-branding
ac_add_options --enable-safe-browsing
ac_add_options --enable-url-classifier
# From firefox-40, using system cairo causes firefox to crash
# frequently when it is doing background rendering in a tab.
#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
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir
2016-02-24 01:27:23 +01:00
EOF
2017-09-21 20:59:33 +02:00
test $(uname -m) = "i686" && sed -i 's/enable-optimize/disable-optimize/' mozconfig || true
sed -e 's/256/224/' \
-i netwerk/protocol/http/Http2Session.cpp
SHELL=/bin/sh make -f client.mk
mkdir -pv $PKG/usr/{bin,lib{,/mozilla/plugins}}
SHELL=/bin/sh make -f client.mk DESTDIR=$PKG install INSTALL_SDK=
2017-10-28 14:10:23 +02:00
chown -R 0:0 $PKG/usr/lib/firefox-$surum
ln -sf ../lib/firefox-$surum/firefox $PKG/usr/bin
ln -sf ../mozilla/plugins $PKG/usr/lib/firefox-$surum
2017-09-21 20:59:33 +02:00
# Gnash için gerekli
mkdir -p $PKG/usr/include/npapi
cp -v dom/plugins/base/*.h $PKG/usr/include/npapi
# Başlatıcı
mkdir -pv $PKG/usr/share/applications &&
cat > $PKG/usr/share/applications/firefox.desktop << "EOF" &&
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=Firefox
Comment=İnternette gezinin
Icon=firefox
Exec=firefox
Categories=Network;GTK;Application;Browser;WebBrowser;
StartupNotify=true
Terminal=false
EOF
mkdir -pv $PKG/usr/share/pixmaps
2017-10-28 14:10:23 +02:00
ln -sf /usr/lib/firefox-$surum/browser/icons/mozicon128.png $PKG/usr/share/pixmaps/firefox.png
2016-02-24 01:27:23 +01:00
2017-09-21 20:59:33 +02:00
for i in 16 22 24 32 48 256
do
mkdir -p $PKG/usr/share/icons/hicolor/${i}x${i}/apps
cp browser/branding/official/default${i}.png \
$PKG/usr/share/icons/hicolor/${i}x${i}/apps/firefox.png
done
2016-02-24 01:27:23 +01:00
2017-09-21 20:59:33 +02:00
for lang in tr
do
install -Dm644 $SRC/$lang.xpi \
2017-10-28 14:10:23 +02:00
$PKG/usr/lib/firefox-$surum/browser/extensions/langpack-$lang@firefox.mozilla.org.xpi
2017-09-21 20:59:33 +02:00
done
2017-10-28 14:10:23 +02:00
cat > $PKG/usr/lib/firefox-$surum/defaults/pref/vendor.js << "EOF"
2017-09-21 20:59:33 +02:00
// Use LANG environment variable to choose locale
pref("intl.locale.matchOS", true);
// Disable default browser checking.
pref("browser.shell.checkDefaultBrowser", false);
// Don't disable our bundled extensions in the application directory
pref("extensions.autoDisableScopes", 11);
pref("extensions.shownSelectionUI", true);
EOF
# Firefox hakkında kısmı
2017-10-28 14:10:23 +02:00
_distini="$PKG/usr/lib/firefox-$surum/distribution/distribution.ini"
2017-09-21 20:59:33 +02:00
install -Dm644 /dev/stdin "$_distini" <<END
[Global]
id=Milis Linux
2017-10-28 14:10:23 +02:00
surum=1.0 Atilla
2017-09-21 20:59:33 +02:00
about=Milis Linux için Mozilla Firefox
[Preferences]
app.distributor=milis
2017-10-28 14:10:23 +02:00
app.distributor.channel=$isim
2017-09-21 20:59:33 +02:00
app.partner.archlinux=milis
END
mkdir -p $PKG/tmp
mv $SRC/.mozilla $PKG/tmp/
2016-02-24 01:27:23 +01:00
}
2017-09-21 20:59:33 +02:00