talimat 1.8 KB

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