talimat 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Tanım: Google tarafından popüler ve güvenilir web tarayıcısı (kararlı Kanal)
  2. # URL: https://www.google.com/chrome
  3. # Paketçi: Oguzhan_DUYAR
  4. # Gerekler: alsa-lib gtk3 cups xorg-libxtst nss
  5. # Grup: ağ
  6. isim=google-chrome
  7. surum=69.0.3497.92
  8. devir=1
  9. kaynak=(https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb::google-chrome-stable_${surum}_amd64.deb
  10. google-chrome-stable.sh )
  11. derle()
  12. {
  13. ar x google-chrome-stable_${surum}_amd64.deb
  14. bsdtar -xf data.tar.xz -C "$PKG/"
  15. # Launcher
  16. install -m755 google-chrome-stable.sh "$PKG"/usr/bin/google-chrome-stable
  17. # Icons
  18. for i in 16x16 22x22 24x24 32x32 48x48 64x64 128x128 256x256; do
  19. install -Dm644 "$PKG"/opt/google/chrome/product_logo_${i/x*}.png \
  20. "$PKG"/usr/share/icons/hicolor/$i/apps/google-chrome.png
  21. done
  22. sed -i "/Exec=/i\StartupWMClass=Google-chrome" "$PKG"/usr/share/applications/google-chrome.desktop
  23. rm -r "$PKG"/etc/cron.daily/ "$PKG"/opt/google/chrome/cron/
  24. rm "$PKG"/opt/google/chrome/product_logo_*.png
  25. }