talimat 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. # Tanım: Qt ücretsiz sürümü, sürüm 5.x
  2. # URL: http://qt-project.org/
  3. # Paketçi: milisarge
  4. # Gerekler: hunspell xorg-proto xorg-libxkbfile xorg-xtrans xorg-libx11 xorg-libxext xorg-libfs xorg-libice xorg-libsm xorg-libxscrnsaver xorg-libxt xorg-libxmu xorg-libxpm xorg-libxaw xorg-libxfixes xorg-libxcomposite xorg-libxrender xorg-libxcursor xorg-libxdamage xorg-libfontenc xorg-libxfont xorg-libxft xorg-libxi xorg-libxinerama xorg-libxrandr xorg-libxres xorg-libxtst xorg-libxv xorg-libxvmc xorg-libxxf86dga xorg-libxxf86vm xorg-libdmx xorg-libpciaccess xorg-libxkbfile xorg-libxshmfence xcb-proto xcb-util-image xcb-util-keysyms xcb-util-renderutil xcb-util-wm alsa-lib ca-certificates cups dbus glib gstreamer-plugins-base icu jasper libproxy libinput libjpeg-turbo libmng libpng libtiff libwebp xorg-mesa mtdev openssl pcre sqlite ruby gstreamer1-plugins-base geoclue gtk2 harfbuzz postgresql pulseaudio unixodbc libxkbcommon mariadb
  5. # Grup: geliştirme sistem
  6. isim=qt5
  7. surum=5.9.1
  8. devir=1
  9. _isim=qt-everywhere-opensource-src-${surum}
  10. kaynak=(http://download.qt.io/official_releases/qt/${surum%.*}/$surum/single/qt-everywhere-opensource-src-$surum.tar.xz
  11. qt5-logo.png)
  12. derle() {
  13. cd ${_name}*
  14. # Respect system CXX
  15. [ "$CXX" ] || CXX=g++
  16. sed -i "/^QMAKE_CXX\s/s|=.*|= $CXX|" qtbase/mkspecs/common/g++-base.conf
  17. # Remove obsolete xorg path
  18. sed -i 's|X11R6/||g' qtbase/mkspecs/*/*.conf
  19. # Respect system CXXFLAGS
  20. sed -i "s|^\(QMAKE_CFLAGS_RELEASE.*\)|\1 ${CXXFLAGS}|" qtbase/mkspecs/common/gcc-base.conf
  21. # Respect system LDFLAGS
  22. sed -i "s|^\(QMAKE_LFLAGS_RELEASE.*\)|\1 ${LDFLAGS}|" qtbase/mkspecs/common/g++-unix.conf
  23. export QTDIR="$PWD"
  24. export LD_LIBRARY_PATH="$QTDIR/qtbase/lib:$QTDIR/qttools/lib:$LD_LIBRARY_PATH"
  25. export QT_PLUGIN_PATH="$QTDIR/qtbase/plugins"
  26. ./configure \
  27. -prefix /usr/ \
  28. -archdatadir /usr/lib/qt5 \
  29. -bindir /usr/lib/qt5/bin \
  30. -datadir /usr/share/qt5 \
  31. -docdir /usr/share/doc/qt5-$surum \
  32. -examplesdir /usr/share/doc/qt5-$surum/examples \
  33. -headerdir /usr/include/qt5 \
  34. -libdir /usr/lib \
  35. -sysconfdir /usr/etc/xdg \
  36. -confirm-license \
  37. -dbus-linked \
  38. -no-egl \
  39. -nomake examples \
  40. -no-pch \
  41. -no-rpath \
  42. -no-separate-debug-info \
  43. -no-strip \
  44. -opengl desktop \
  45. -opensource \
  46. -openssl-linked \
  47. -optimized-qmake \
  48. -reduce-relocations \
  49. -release \
  50. -shared \
  51. -skip qtwebengine
  52. make
  53. make -j1 INSTALL_ROOT=$PKG install
  54. # Fix paths
  55. find $PKG/usr/lib/ -type f -name '*.prl' \
  56. -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d;s/\(QMAKE_PRL_LIBS =\).*/\1/' {} \;
  57. sed -e "s|$PWD/qtbase|/usr/lib/qt5|g" \
  58. -i $PKG/usr/lib/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri
  59. rm -r $PKG/usr/share/doc
  60. # Install useful symlinks
  61. install -d $PKG/usr/bin
  62. for file in $PKG/usr/lib/qt5/bin/*; do
  63. ln -s ../lib/qt5/bin/$(basename $file) $PKG/usr/bin/$(basename $file)-qt5
  64. done
  65. # Add menu entries for all those hidden but great Qt applications:
  66. # # Qt5 logo:
  67. install -d $PKG/usr/share/icons/hicolor/48x48/apps
  68. install -m 0644 $SRC/qt5-logo.png $PKG/usr/share/icons/hicolor/48x48/apps/qt5-logo.png
  69. # Assistant icons
  70. install -m 0644 -D qttools/src/assistant/assistant/images/assistant.png $PKG/usr/share/icons/hicolor/32x32/apps/qt5-assistant.png
  71. install -m 0644 -D qttools/src/assistant/assistant/images/assistant-128.png $PKG/usr/share/icons/hicolor/128x128/apps/qt5-assistant.png
  72. # Designer icon
  73. install -m 0644 -D qttools/src/designer/src/designer/images/designer.png $PKG/usr/share/icons/hicolor/128x128/apps/qt5-designer.png
  74. # QDbusViewer icons
  75. install -m 0644 qttools/src/qdbus/qdbusviewer/images/qdbusviewer.png $PKG/usr/share/icons/hicolor/32x32/apps/qt5-qdbusviewer.png
  76. install -m 0644 qttools/src/qdbus/qdbusviewer/images/qdbusviewer-128.png $PKG/usr/share/icons/hicolor/128x128/apps/qt5-qdbusviewer.png
  77. # Linguist icons
  78. for icon in qttools/src/linguist/linguist/images/icons/linguist-*-32.png ; do
  79. size=$(echo $(basename ${icon}) | cut -d- -f2)
  80. install -m 0644 -D ${icon} $PKG/usr/share/icons/hicolor/${size}x${size}/apps/qt5-linguist.png
  81. done
  82. # And the .desktop files too:
  83. install -d $PKG/usr/share/applications
  84. cat <<EOF > $PKG/usr/share/applications/qt5-designer.desktop
  85. [Desktop Entry]
  86. Name=Qt5 Designer
  87. GenericName=Arayüz tasarımı
  88. Comment=Qt5 uygulamaları için arayüz tasarımı
  89. Exec=designer-qt5 -qt=5
  90. Icon=qt5-designer
  91. MimeType=application/x-designer;
  92. Terminal=false
  93. Encoding=UTF-8
  94. Type=Application
  95. Categories=Qt;Development;
  96. EOF
  97. cat <<EOF > $PKG/usr/share/applications/qt5-assistant.desktop
  98. [Desktop Entry]
  99. Name=Qt5 Asistan
  100. Comment=Qt5 belgelerini ve örneklerini gösterir
  101. Exec=assistant-qt5 -qt=5
  102. Icon=qt5-assistant
  103. Terminal=false
  104. Encoding=UTF-8
  105. Type=Application
  106. Categories=Qt;Development;Documentation;
  107. EOF
  108. cat <<EOF > $PKG/usr/share/applications/qt5-linguist.desktop
  109. [Desktop Entry]
  110. Name=Qt5 Linguist
  111. Comment=Qt5 uygulamalarına dil ekleme
  112. Exec=linguist-qt5 -qt=5
  113. Icon=qt5-linguist
  114. MimeType=text/vnd.trolltech.linguist;application/x-linguist;
  115. Terminal=false
  116. Encoding=UTF-8
  117. Type=Application
  118. Categories=Qt;Development;
  119. EOF
  120. cat <<EOF > $PKG/usr/share/applications/qt5-qdbusviewer.desktop
  121. [Desktop Entry]
  122. Name=Qt5 QDbusViewer
  123. GenericName=Qt5 D-Bus Debugger
  124. Comment=D-Bus uygulamalarında hata ayıklama
  125. Exec=qdbusviewer-qt5
  126. Icon=qt5-qdbusviewer
  127. Terminal=false
  128. Type=Application
  129. Categories=Qt;Development;Debugger;
  130. EOF
  131. }