# Contributor: Natanael Copa # Contributor: Alexey Minnekhanov # Maintainer: Natanael Copa pkgname=qt-creator pkgver=11.0.1 pkgrel=0 pkgdesc="Lightweight and cross-platform C++ IDE" url="https://qt-project.org/wiki/Category:Tools::QtCreator" arch="x86_64 aarch64" # qt6-qtwebengine license="GPL-3.0-only WITH Qt-GPL-exception-1.0" depends=" qt6-qtbase-sqlite qt6-qtbase-dev qt6-qttools-dev " _llvmver=16 makedepends=" botan-dev clang$_llvmver-dev clang$_llvmver-static cmake elfutils-dev lld llvm$_llvmver-dev llvm$_llvmver-static qt6-qt5compat-dev qt6-qtdeclarative-dev qt6-qtquick3d-dev qt6-qtserialport-dev qt6-qtshadertools-dev qt6-qtsvg-dev qt6-qtwebengine-dev samurai " ldpath="/usr/lib/qtcreator:/usr/lib/qtcreator/plugins" source=" https://download.qt.io/official_releases/qtcreator/${pkgver%.*}/$pkgver/qt-creator-opensource-src-$pkgver.tar.xz fix-execinfo.patch fix-malloc-trim.patch " builddir="$srcdir"/qt-creator-opensource-src-$pkgver build() { # enum-constexpr-conversion in clang16 now flags outside-enumeration # values like -1 as invalid export CC=clang-$_llvmver export CXX=clang++-$_llvmver export CFLAGS="$CFLAGS -flto=thin" export CXXFLAGS="$CXXFLAGS -flto=thin -Wno-error=enum-constexpr-conversion -I/usr/lib/llvm$_llvmver/include" export LDFLAGS="$LDFLAGS -fuse-ld=lld" case "$CARCH" in aarch64) # not recognised by clang on aarch64 export CFLAGS="${CFLAGS/-fstack-clash-protection}" export CXXFLAGS="${CXXFLAGS/-fstack-clash-protection}" ;; esac cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_QBS=OFF \ -DBUILD_PLUGIN_CLANGFORMAT=OFF \ -DBUILD_PLUGIN_COPILOT=OFF \ -DBUILD_WITH_PCH=OFF \ -DCLANGTOOLING_LINK_CLANG_DYLIB=ON cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" d280eda747bf192e8f7954a970d6d14fbd1963bc9bad83f16de6370b87bbd3cf7ce9ff545ab8ef33839a8cc3f6285375dded3af5a9fc286d77a47db93e9faa0b qt-creator-opensource-src-11.0.1.tar.xz 43d73c9cd272ee849a5d85490d351c71b786d7ce6b5b46c6ec13642329c14bacc84a122f0bfbb445841aedef8d1cc9fe2485c0c8db24080b5a9dd4380e36c58d fix-execinfo.patch b6d55b642b20fdfc5d8256aa155e38ab4e564c463a2743883017f47e8adce5516101d07ab6894295d5abbdd48472cc6372306e8d7285a10d8ee5931a919d11b4 fix-malloc-trim.patch "