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

52 lines
1.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: Mozilla.org'dan Bağımsız Web Tarayıcısı
# URL: http://www.mozilla.com/firefox/
# 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
# Grup: ağ
isim=firefox-bin
_isim=firefox
surum=59.0.3
devir=1
kaynak=(https://ftp.mozilla.org/pub/firefox/releases/$surum/linux-x86_64/tr/firefox-$surum.tar.bz2
firefox.desktop)
derle() {
mkdir -p $PKG/usr/bin
mkdir -p $PKG/usr/share/applications
mkdir -p $PKG/usr/share/icons/hicolor/128x128/apps
mkdir -p $PKG/opt
# Kurulum
cp -r firefox/ $PKG/opt/$_isim
# /usr/bin symlinks
ln -s /opt/$_isim/firefox $PKG/usr/bin/$_isim
# Masaüstü
install -m644 $_isim.desktop $PKG/usr/share/applications/
# Simgeler
for i in 16x16 22x22 24x24 32x32 48x48 256x256; do
install -d $PKG/usr/share/icons/hicolor/$i/apps/
ln -s /opt/$_isim/browser/chrome/icons/default/default${i/x*}.png \
$PKG/usr/share/icons/hicolor/$i/apps/$_isim.png
done
_distini="$PKG/opt/firefox/distribution/distribution.ini"
install -Dm644 /dev/stdin "$_distini" <<END
[Global]
id=Milis
surum=1.0 Atilla
about=Milis Lİnux 1.0 için Mozilla Firefox
[Preferences]
app.distributor=milis
app.distributor.channel=$_isim
app.partner.milis=milis
END
# 128x128
ln -s /opt/$_isim/browser/icons/mozicon128.png \
$PKG/usr/share/icons/hicolor/128x128/apps/$_isim.png
}