talimat 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Tanım: Hızlı ve güvenli bir web tarayıcısı
  2. # URL: http://www.opera.com/
  3. # Paketçi: yasarciv67 Cihan_Alkan
  4. # Gerekler: gtk2 desktop-file-utils shared-mime-info xorg-libxtst gconf xorg-libxscrnsaver alsa-lib nss freefont-ttf libnotify hicolor-icon-theme
  5. # Grup: ağ
  6. isim=opera
  7. surum=53.0.2907.68
  8. devir=1
  9. kaynak=(http://get.geo.opera.com/pub/${isim}/desktop/$surum/linux/${isim}-stable_${surum}_amd64.deb
  10. opera
  11. default)
  12. derle() {
  13. sed -e "s/%{isim}%/${isim}/g" -i "$SRC/opera"
  14. sed -e "s/%operabin%/${isim}\/${isim}/g" \
  15. -i "$SRC/opera"
  16. bsdtar -xf ${isim}-stable_${surum}_amd64.deb
  17. bsdtar -xf data.tar.xz --exclude=usr/share/{lintian,menu} -C "$PKG/"
  18. # get rid of the extra subfolder {i386,x86_64}-linux-gnu
  19. (
  20. cd "$PKG/usr/lib/"*-linux-gnu/
  21. mv "${isim}" ../
  22. )
  23. rm -rf "$PKG/usr/lib/"*-linux-gnu
  24. # suid opera_sandbox
  25. chmod 4755 "$PKG/usr/lib/${isim}/opera_sandbox"
  26. # Varsayılan seçenekleri yükle
  27. install -Dm644 "$SRC/default" "$PKG/etc/${isim}/default"
  28. # Opera sarmalayıcı yükle
  29. rm "$PKG/usr/bin/${isim}"
  30. install -Dm755 "$SRC/opera" "$PKG/usr/bin/${isim}"
  31. # lisans
  32. install -Dm644 \
  33. "$PKG/usr/share/doc/${isim}-stable/copyright" \
  34. "$PKG/usr/share/licenses/${isim}/copyright"
  35. # Başlatıcı
  36. sed -i 's/^Exec=/Name[tr]=Opera \
  37. GenericName[tr]=Web Tarayıcı \
  38. Comment[tr]=Hızlı ve güvenli bir web tarayıcısı \
  39. &/' $PKG/usr/share/applications/${isim}.desktop
  40. }