talimat 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Tanım: Dooble,güvenli webkit tarayıcısı
  2. # URL: http://dooble.sourceforge.net/
  3. # Paketçi: milisarge
  4. # Gerekler: libpng qt5 openssl libspoton qt5-webkit
  5. # Grup: ağ
  6. isim=dooble
  7. surum=1.56c
  8. devir=1
  9. kaynak=(https://github.com/textbrowser/$isim/archive/v$surum.tar.gz)
  10. derle() {
  11. cd "$isim-$surum/Version 1.x/"
  12. sed -i 's_-Werror__g' dooble.qt5.pro
  13. sed -i 's_-lspoton_-lspoton -lQt5PrintSupport_g' dooble.qt5.pro
  14. qmake-qt5 -o Makefile dooble.qt5.pro
  15. make distclean
  16. qmake-qt5 -o Makefile dooble.qt5.pro
  17. sed -i '/^INCPATH/s:=:= -I/usr/include/qt/QtWidgets:' Makefile
  18. sed -i '/^INCPATH/s:=:= -I/usr/include/qt/QtWebKitWidgets:' Makefile
  19. sed -i '/^INCPATH/s:=:= -I/usr/include/qt/QtPrintSupport:' Makefile
  20. sed -i '/#include/s:QtGui/\([^>]*\)QAction:\1:' Include/*.h
  21. make
  22. install -Dm755 Dooble -- "${PKG}/usr/lib/${isim}/Dooble"
  23. install -Dm755 dooble.sh -- "${PKG}/usr/bin/${isim}"
  24. install -d "${PKG}/usr/share/$isim"
  25. install -Dm644 dooble.desktop -- "${PKG}/usr/share/applications/${isim}.desktop"
  26. install -Dm644 Icons/48x48/dooble.png -- "${PKG}/usr/share/icons/hicolor/48x48/$isim.png"
  27. sed -i s_"/usr/local/dooble/"_"/usr/lib/${isim}/"_g -- "${PKG}/usr/bin/${isim}"
  28. sed -i s_"/usr/local/dooble"_"/usr/share/dooble"_g -- "${PKG}/usr/bin/${isim}"
  29. sed -i s_"\./Dooble"_"../../lib/${isim}/Dooble"_g -- "${PKG}/usr/bin/${isim}"
  30. sed -i /LD_LIBRARY_PATH/d -- "${PKG}/usr/bin/${isim}"
  31. sed -i s_'/usr/local/dooble/Lib\x00'_'/usr/lib\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'_g \
  32. -- "${PKG}/usr/lib/${isim}/Dooble" # The replacements's length must match the pattern's length
  33. sed -i s_'/usr/local/dooble/dooble.sh'_"/usr/bin/${isim}"_g \
  34. -- "${PKG}/usr/share/applications/${isim}.desktop"
  35. }