milis/talimatname/genel/f/firefox/talimat

120 lines
3.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/
2018-05-10 11:52:26 +02:00
# Paketçi: Cihan_Alkan
# Gerekler: libvpx rust cargo binutils-gold autoconf2 pulseaudio gconf yasm sqlite nss alsa-lib gtk2 gtk3 xorg-app zip unzip startup-notification gstreamer gstreamer-plugins-base gstreamer-plugins-good gstreamer1-plugins-libav
2018-07-19 17:48:14 +02:00
# Grup: ağ
2016-02-24 01:27:23 +01:00
2017-10-28 14:10:23 +02:00
isim=firefox
2018-05-10 11:52:26 +02:00
surum=60.0
devir=1
2017-09-21 20:59:33 +02:00
2018-05-10 11:52:26 +02:00
kaynak=(https://ftp.mozilla.org/pub/firefox/releases/60.0/source/firefox-60.0.source.tar.xz
2018-05-10 12:00:33 +02:00
http://download.cdn.mozilla.net/pub/$isim/releases/$surum/linux-x86_64/xpi/tr.xpi::tr-${surum}.xpi
2018-05-10 11:52:26 +02:00
google-api-key
mozilla-api-key)
2017-09-21 20:59:33 +02:00
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"
ac_add_options --enable-application=browser
2018-05-10 11:52:26 +02:00
ac_add_options --prefix=/usr
ac_add_options --enable-release
ac_add_options --enable-gold
ac_add_options --enable-pie
ac_add_options --enable-optimize="-O2"
ac_add_options --enable-rust-simd
2017-09-21 20:59:33 +02:00
2018-05-10 11:52:26 +02:00
# Branding
2017-09-21 20:59:33 +02:00
ac_add_options --enable-official-branding
2018-05-10 11:52:26 +02:00
ac_add_options --enable-update-channel=release
ac_add_options --with-distribution-id=org.milislinux
export MOZILLA_OFFICIAL=1
export MOZ_TELEMETRY_REPORTING=1
export MOZ_ADDON_SIGNING=1
export MOZ_REQUIRE_SIGNING=1
# Keys
ac_add_options --with-google-api-keyfile=/${SRC}/google-api-key
ac_add_options --with-mozilla-api-keyfile=/${SRC}/mozilla-api-key
# System libraries
2017-09-21 20:59:33 +02:00
ac_add_options --with-system-bz2
2018-05-10 11:52:26 +02:00
#ac_add_options --with-system-icu
2017-09-21 20:59:33 +02:00
ac_add_options --with-system-jpeg
2018-05-10 11:52:26 +02:00
ac_add_options --with-system-libvpx
#ac_add_options --enable-system-hunspell
ac_add_options --enable-system-ffi
2017-09-21 20:59:33 +02:00
2018-05-10 11:52:26 +02:00
# Features
ac_add_options --enable-alsa
ac_add_options --enable-jack
ac_add_options --enable-startup-notification
ac_add_options --enable-crashreporter
ac_add_options --disable-updater
ac_add_options --disable-stylo
2016-02-24 01:27:23 +01:00
EOF
2018-05-10 11:52:26 +02:00
SHELL=/bin/sh ./mach build
SHELL=/bin/sh ./mach buildsymbols
2017-09-21 20:59:33 +02:00
mkdir -pv $PKG/usr/{bin,lib{,/mozilla/plugins}}
2018-05-10 11:52:26 +02:00
SHELL=/bin/sh DESTDIR=$PKG ./mach install
2017-09-21 20:59:33 +02:00
2018-05-10 11:52:26 +02:00
ln -svf ../mozilla/plugins $PKG/usr/lib/firefox/browser/
2017-09-21 20:59:33 +02:00
2018-05-10 11:52:26 +02:00
# Need for gnash
2017-09-21 20:59:33 +02:00
mkdir -p $PKG/usr/include/npapi
cp -v dom/plugins/base/*.h $PKG/usr/include/npapi
2018-05-10 11:52:26 +02:00
# Launcher
2017-09-21 20:59:33 +02:00
mkdir -pv $PKG/usr/share/applications &&
cat > $PKG/usr/share/applications/firefox.desktop << "EOF" &&
[Desktop Entry]
Encoding=UTF-8
2018-05-10 11:52:26 +02:00
Name=Firefox Web Browser
2017-09-21 20:59:33 +02:00
Comment=İnternette gezinin
2018-05-10 11:52:26 +02:00
GenericName=Web Tarayıcı
Exec=firefox %u
Terminal=false
Type=Application
2017-09-21 20:59:33 +02:00
Icon=firefox
2018-05-10 11:52:26 +02:00
Categories=GNOME;GTK;Network;WebBrowser;
MimeType=application/xhtml+xml;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
2017-09-21 20:59:33 +02:00
StartupNotify=true
EOF
2018-05-10 11:52:26 +02:00
mkdir -pv $PKG/usr/share/applications
2017-09-21 20:59:33 +02:00
mkdir -pv $PKG/usr/share/pixmaps
2018-05-10 11:52:26 +02:00
ln -sf /usr/lib/firefox-$version/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
2018-05-10 12:00:33 +02:00
install -Dm644 $SRC/tr-${surum}.xpi \
2018-05-10 11:52:26 +02:00
$PKG/usr/lib/firefox/browser/extensions/langpack-tr@firefox.mozilla.org.xpi
2017-09-21 20:59:33 +02:00
done
2018-05-10 11:52:26 +02:00
install -Dm644 /dev/stdin $PKG/usr/lib/firefox/browser/defaults/preferences/vendor.js <<END
2017-09-21 20:59:33 +02:00
// Use LANG environment variable to choose locale
2018-05-10 11:52:26 +02:00
pref("intl.locale.requested", "");
2017-09-21 20:59:33 +02:00
// 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);
END
2016-02-24 01:27:23 +01:00
}