milis/talimatname/genel/f/firefox-bin/talimat

52 lines
1.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ı
2017-07-02 03:25:42 +02:00
# URL: http://www.mozilla.com/firefox/
2017-10-27 20:46:27 +02:00
# Paketçi: Cihan Alkan
# Gerekler: 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
2018-01-07 14:48:50 +01:00
# Grup: ağ
2017-07-02 03:25:42 +02:00
2017-10-28 14:10:23 +02:00
isim=firefox-bin
_isim=firefox
2018-05-05 09:58:02 +02:00
surum=59.0.3
2017-10-28 14:10:23 +02:00
devir=1
2018-05-05 09:58:02 +02:00
kaynak=(https://ftp.mozilla.org/pub/firefox/releases/$surum/linux-x86_64/tr/firefox-$surum.tar.bz2
2017-07-02 13:44:06 +02:00
firefox.desktop)
2017-07-02 03:25:42 +02:00
2017-10-27 23:59:41 +02:00
derle() {
2017-07-02 03:25:42 +02:00
mkdir -p $PKG/usr/bin
mkdir -p $PKG/usr/share/applications
mkdir -p $PKG/usr/share/icons/hicolor/128x128/apps
2018-01-07 14:48:50 +01:00
mkdir -p $PKG/opt
2017-07-02 03:25:42 +02:00
# Kurulum
2018-01-07 14:48:50 +01:00
cp -r firefox/ $PKG/opt/$_isim
2017-07-02 03:25:42 +02:00
# /usr/bin symlinks
2018-01-07 14:48:50 +01:00
ln -s /opt/$_isim/firefox $PKG/usr/bin/$_isim
2017-07-02 03:25:42 +02:00
# Masaüstü
2018-01-07 14:48:50 +01:00
install -m644 $_isim.desktop $PKG/usr/share/applications/
2017-07-02 03:25:42 +02:00
# Simgeler
for i in 16x16 22x22 24x24 32x32 48x48 256x256; do
install -d $PKG/usr/share/icons/hicolor/$i/apps/
2018-01-07 14:48:50 +01:00
ln -s /opt/$_isim/browser/chrome/icons/default/default${i/x*}.png \
$PKG/usr/share/icons/hicolor/$i/apps/$_isim.png
2017-07-02 03:25:42 +02:00
done
_distini="$PKG/opt/firefox/distribution/distribution.ini"
install -Dm644 /dev/stdin "$_distini" <<END
[Global]
id=Milis
2017-10-28 14:10:23 +02:00
surum=1.0 Atilla
2017-07-02 03:25:42 +02:00
about=Milis Lİnux 1.0 için Mozilla Firefox
[Preferences]
app.distributor=milis
2018-01-07 14:48:50 +01:00
app.distributor.channel=$_isim
app.partner.milis=milis
2017-07-02 03:25:42 +02:00
END
# 128x128
2018-01-07 14:48:50 +01:00
ln -s /opt/$_isim/browser/icons/mozicon128.png \
$PKG/usr/share/icons/hicolor/128x128/apps/$_isim.png
2017-07-02 03:25:42 +02:00
}