talimat 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Tanım: Mozilla.org'dan Bağımsız Web Tarayıcısı
  2. # URL: http://www.mozilla.com/firefox/
  3. # Paketçi: Cihan_Alkan
  4. # 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
  5. # Grup: ağ
  6. isim=firefox-bin
  7. surum=63.0.1
  8. devir=1
  9. kaynak=(https://ftp.mozilla.org/pub/firefox/releases/$surum/linux-x86_64/tr/firefox-$surum.tar.bz2
  10. firefox.desktop
  11. distribution-firefox-milis.ini)
  12. derle() {
  13. mkdir -p $PKG/usr/bin
  14. mkdir -p $PKG/usr/share/applications
  15. mkdir -p $PKG/usr/share/icons/hicolor/128x128/apps
  16. mkdir -p $PKG/opt
  17. # Kurulum
  18. cp -r firefox/ $PKG/opt/firefox
  19. # /usr/bin kısayollar
  20. ln -s /opt/firefox/firefox $PKG/usr/bin/firefox
  21. # Masaüstü
  22. install -m644 firefox.desktop $PKG/usr/share/applications/
  23. # Simgeler
  24. for i in 16x16 22x22 24x24 32x32 48x48 256x256; do
  25. install -d $PKG/usr/share/icons/hicolor/$i/apps/
  26. ln -s /opt/firefox/browser/chrome/icons/default/default${i/x*}.png \
  27. $PKG/usr/share/icons/hicolor/$i/apps/firefox.png
  28. done
  29. mkdir -p $PKG/opt/firefox/distribution
  30. cp $SRC/distribution-firefox-milis.ini $PKG/opt/firefox/distribution/distribution.ini
  31. # 128x128
  32. ln -s /opt/firefox/browser/icons/mozicon128.png \
  33. $PKG/usr/share/icons/hicolor/128x128/apps/firefox.png
  34. }