1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 # Contributor: Andrea Scarpino <andrea@archlinux.org>
10 url='https://www.qt.io'
11 license=(GPL3 LGPL3 FDL custom)
12 pkgdesc='A cross-platform application and UI framework'
13 depends=(libjpeg-turbo xcb-util-keysyms xcb-util-cursor libgl fontconfig xdg-utils
14 shared-mime-info xcb-util-wm libxrender libxi sqlite mesa vulkan-headers
15 tslib libinput libxkbcommon-x11 libproxy libcups double-conversion brotli libb2 md4c)
16 makedepends=(cmake ninja libfbclient mariadb-libs unixodbc postgresql alsa-lib gst-plugins-base-libs
17 gtk3 libpulse cups freetds xmlstarlet)
18 optdepends=('qt6-wayland: to run Qt6 applications in a Wayland session'
19 'postgresql-libs: PostgreSQL driver'
20 'mariadb-libs: MariaDB driver'
21 'unixodbc: ODBC driver'
22 'libfbclient: Firebird/iBase driver'
23 'freetds: MS SQL driver'
24 'gtk3: GTK platform plugin'
28 _pkgfn=${pkgname/6-/}-everywhere-src-$_qtver
29 source=(https://download.qt.io/official_releases/qt/${pkgver%.*}/$_qtver/submodules/$_pkgfn.tar.xz
31 qt6-base-nostrip.patch)
32 sha256sums=('0a64421d9c2469c2c48490a032ab91d547017c9cc171f3f8070bc31888f24e03'
33 '5411edbe215c24b30448fac69bd0ba7c882f545e8cf05027b2b6e2227abc5e78'
34 '4b93f6a79039e676a56f9d6990a324a64a36f143916065973ded89adc621e094')
37 patch -d $_pkgfn -p1 < qt6-base-cflags.patch # Use system CFLAGS
38 patch -d $_pkgfn -p1 < qt6-base-nostrip.patch # Don't strip binaries with qmake
42 cmake -B build -S $_pkgfn -G Ninja \
43 -DCMAKE_INSTALL_PREFIX=/usr \
44 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
45 -DINSTALL_BINDIR=lib/qt6/bin \
46 -DINSTALL_PUBLICBINDIR=usr/bin \
47 -DINSTALL_LIBEXECDIR=lib/qt6 \
48 -DINSTALL_DOCDIR=share/doc/qt6 \
49 -DINSTALL_ARCHDATADIR=lib/qt6 \
50 -DINSTALL_DATADIR=share/qt6 \
51 -DINSTALL_INCLUDEDIR=include/qt6 \
52 -DINSTALL_MKSPECSDIR=lib/qt6/mkspecs \
53 -DINSTALL_EXAMPLESDIR=share/doc/qt6/examples \
54 -DQT_FEATURE_journald=ON \
55 -DQT_FEATURE_openssl_linked=ON \
56 -DQT_FEATURE_system_sqlite=ON \
57 -DQT_FEATURE_system_xcb_xinput=ON \
58 -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON
63 depends+=(qt6-translations)
64 DESTDIR="$pkgdir" cmake --install build
66 install -Dm644 $_pkgfn/LICENSE* -t "$pkgdir"/usr/share/licenses/$pkgbase
68 # Install symlinks for user-facing tools
73 done < "$srcdir"/build/user_facing_tool_links.txt