🔒 Repository is read-only – file editing is disabled.

recipes/gui/qttools/PAGBUILD.yaml main

119 linii Raw ← Powrót
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
pkgname: qttools
pkgver: '5.15.19'
pkgrel: '1'
pkgdesc: 'A cross-platform application and UI framework, QtTools files'
url: 'https://qt-project.org/'
arch: x86_64
license:
- FDL
- GPL3
- LGPL3
- custom

depends: []
makedepends:
- qtbase
- qtdeclarative
- 'desktop-file-utils'
- 'hicolor-icon-theme'
- 'xdg-utils'
- 'vulkan-headers'

source:
- 'https://download.qt.io/archive/qt/5.15/${pkgver}/submodules/${pkgname}-everywhere-opensource-src-${pkgver}.tar.xz'

sha256sums:
- SKIP

build: |
  mkdir build
  cd    build
  qmake ../${pkgname}-everywhere-src-${pkgver}
  make
  make INSTALL_ROOT=${PKGDIR} install

  mkdir ${PKGDIR}/usr/share/applications

  cat > ${PKGDIR}/usr/share/applications/assistant-qt.desktop << "EOf"
  [Desktop Entry]
  Name=Qt5 Assistant
  Comment=Shows Qt5 documentation and examples
  Exec=assistant
  Icon=assistant
  Terminal=false
  Encoding=UTf-8
  Type=Application
  Categories=Qt;Development;Documentation;
  EOf

  cat > ${PKGDIR}/usr/share/applications/designer-qt.desktop << "EOf"
  [Desktop Entry]
  Name=Qt5 Designer
  GenericName=interface Designer
  Comment=Design GUis for Qt5 applications
  Exec=designer
  Icon=QtProject-designer
  mimeType=application/x-designer;
  Terminal=false
  Encoding=UTf-8
  Type=Application
  Categories=Qt;Development;
  EOf

  cat > ${PKGDIR}/usr/share/applications/linguist-qt.desktop << "EOf"
  [Desktop Entry]
  Name=Qt5 Linguist
  Comment=Add translations to Qt5 applications
  Exec=linguist
  Icon=linguist
  mimeType=text/vnd.trolltech.linguist;application/x-linguist;
  Terminal=false
  Encoding=UTf-8
  Type=Application
  Categories=Qt;Development;
  EOf

  cat > ${PKGDIR}/usr/share/applications/qdbusviewer-qt.desktop << "EOf"
  [Desktop Entry]
  Name=Qt5 QDbusviewer
  GenericName=D-Bus Debugger
  Comment=Debug D-Bus applications
  Exec=qdbusviewer
  Icon=qdbusviewer
  Terminal=false
  Encoding=UTf-8
  Type=Application
  Categories=Qt;Development;Debugger;
  EOf

  cd ../${pkgname}-everywhere-src-${pkgver}

  # install missing icons and desktop files
  for icon in src/linguist/linguist/images/icons/linguist-*-32.png ; do
     size=$(echo $(basename ${icon}) | cut -d- -f2)
     install -p -D -m644 ${icon} \
        "${PKGDIR}/usr/share/icons/hicolor/${size}x${size}/apps/linguist.png"
  done

  install -D -m644 src/assistant/assistant/images/assistant.png \
      "${PKGDIR}/usr/share/icons/hicolor/32x32/apps/assistant.png"
    install -D -m644 src/assistant/assistant/images/assistant-128.png \
      "${PKGDIR}/usr/share/icons/hicolor/128x128/apps/assistant.png"
    install -D -m644 src/designer/src/designer/images/designer.png \
      "${PKGDIR}/usr/share/icons/hicolor/128x128/apps/QtProject-designer.png"
    install -D -m644 src/qdbus/qdbusviewer/images/qdbusviewer.png \
      "${PKGDIR}/usr/share/icons/hicolor/32x32/apps/qdbusviewer.png"
    install -D -m644 src/qdbus/qdbusviewer/images/qdbusviewer-128.png \
      "${PKGDIR}/usr/share/icons/hicolor/128x128/apps/qdbusviewer.png"
  # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
    find "${PKGDIR}/usr/lib" -type f -name '*.prl' \
         -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
  # Obsolets libs
  rm -f ${PKGDIR}/usr/lib/libQt5Designer.la
  rm -f ${PKGDIR}/usr/lib/libQt5DesignerComponents.la
  rm -f ${PKGDIR}/usr/lib/libQt5Help.la
  rm -f ${PKGDIR}/usr/lib/libQt5UiTools.la
  rm -f ${PKGDIR}/usr/lib/Qt5UiPlugin.la

package: |
  true