PKGBUILD 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # Maintainer (arch): Antonio Rojas <arojas@archlinux.org>
  2. # Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
  3. # Contributor: Imanol Celaya <ornitorrincos@archlinux-es.org>
  4. # Contributor: Lukas Jirkovsky <l.jirkovsky@gmail.com>
  5. # Contributor: Dan Vratil <progdan@progdansoft.com>
  6. # Contributor: thotypous <matiasΘarchlinux-br·org>
  7. # Contributor: delor <bartekpiech gmail com>
  8. # Maintainer: bill-auger <bill-auger@programmer.net>
  9. # Contributor: André Silva <emulatorman@hyperbola.info>
  10. # Contributor: Theo von Arx <theova@member.fsf.org>
  11. # parabola changes and rationale:
  12. # - buld without qt5-webengine (help GUI is unavailable)
  13. # - disable 'googletest' tests - requires internet access - libretools does not allow that
  14. pkgname=qtcreator
  15. pkgver=6.0.0
  16. _clangver=13.0.0
  17. [[ "${CARCH}" == 'i686' ]] && _clangver=12.0.1
  18. pkgrel=1
  19. pkgrel+=.parabola1
  20. pkgdesc='Lightweight, cross-platform integrated development environment'
  21. arch=(x86_64)
  22. arch+=(armv7h i686)
  23. url='https://www.qt.io'
  24. license=(GPL3)
  25. depends=(qt6-tools qt6-svg qt6-quick3d qt6-webengine qt6-serialport qt6-shadertools qt6-5compat
  26. clang=$_clangver clazy yaml-cpp) # syntax-highlighting
  27. depends=( $( sed -E 's/(qt5-webengine|yaml-cpp)//g' <<<${depends[@]} ) )
  28. depends_i686=(icu-compat) # this build requires v69 on i686
  29. makedepends=(cmake llvm python)
  30. options=(docs)
  31. optdepends=('qt6-doc: integrated Qt documentation'
  32. 'qt6-examples: welcome page examples'
  33. 'qt6-translations: for other languages'
  34. 'gdb: debugger'
  35. 'cmake: cmake project support'
  36. 'x11-ssh-askpass: ssh support'
  37. 'git: git support'
  38. 'mercurial: mercurial support'
  39. 'bzr: bazaar support'
  40. 'valgrind: analyze support'
  41. 'perf: performer analyzer'
  42. 'mlocate: locator filter')
  43. source=(https://download.qt.io/official_releases/qtcreator/${pkgver%.*}/$pkgver/qt-creator-opensource-src-$pkgver.tar.xz)
  44. sha256sums=('6beb7802f6ab339f0ea947530e6902245057ec161b2b6d2ed9053e1bee1be0bf')
  45. _enable_tests=OFF # 'OFF' or 'ON' - 'ON' requires internet access
  46. build() {
  47. cmake -B build -S qt-creator-opensource-src-$pkgver \
  48. -DCMAKE_INSTALL_PREFIX=/usr \
  49. -DCMAKE_INSTALL_LIBEXECDIR=lib \
  50. -DWITH_DOCS=ON \
  51. -DBUILD_DEVELOPER_DOCS=ON \
  52. -DBUILD_QBS=OFF \
  53. -DBUILD_TESTING=$_enable_tests \
  54. -DBUILD_HELPVIEWERBACKEND_QTWEBENGINE=OFF \
  55. -DQTC_CLANG_BUILDMODE_MATCH=ON
  56. cmake --build build
  57. cmake --build build --target docs
  58. }
  59. package() {
  60. DESTDIR="$pkgdir" cmake --install build
  61. # Install docs
  62. cp -r build/share/doc "$pkgdir"/usr/share
  63. install -Dm644 qt-creator-opensource-src-$pkgver/LICENSE.GPL3-EXCEPT "$pkgdir"/usr/share/licenses/qtcreator/LICENSE.GPL3-EXCEPT
  64. }