46 lines
1.7 KiB
Plaintext
46 lines
1.7 KiB
Plaintext
# Description: Qt Free Edition, version 6.x.
|
|
# URL: http://www.qt.io/
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Depends on: at-spi2-atk brotli double-conversion gdk-pixbuf jasper keyutils krb5 libepoxy libinput libmng libpcre2 libtool libwebp libxkbcommon pango xorg-libxcomposite xorg-libxcursor xorg-libxinerama xorg-xcb-util-image xorg-xcb-util-keysyms xorg-xcb-util-renderutil xorg-xcb-util-wm
|
|
# Optional: icu hunspell mysql avahi graphite2 unixodbc gtk3
|
|
|
|
name=qt6
|
|
version=6.1.2
|
|
release=1
|
|
source=(https://download.qt.io/official_releases/qt/${version%.*}/$version/single/qt-everywhere-src-$version.tar.xz
|
|
qt6-cflags.patch)
|
|
|
|
build() {
|
|
patch -d qt-everywhere-src-$version/qtbase -p1 -i $SRC/qt6-cflags.patch
|
|
|
|
prt-get isinst ninja && PKGMK_QT6+=' -G Ninja'
|
|
prt-get isinst ccache && PKGMK_QT6+=' -D QT_USE_CCACHE=ON' && PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')"
|
|
|
|
cmake -B build -S qt-everywhere-src-$version $PKGMK_QT6 \
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
-D INSTALL_BINDIR=lib/qt6/bin \
|
|
-D INSTALL_DOCDIR=share/doc/qt6 \
|
|
-D INSTALL_ARCHDATADIR=lib/qt6 \
|
|
-D INSTALL_DATADIR=share/qt6 \
|
|
-D INSTALL_INCLUDEDIR=include/qt6 \
|
|
-D INSTALL_MKSPECSDIR=lib/qt6/mkspecs \
|
|
-D INSTALL_EXAMPLESDIR=share/doc/qt6/examples \
|
|
-D PYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3 \
|
|
-D QT_DISABLE_RPATH=TRUE \
|
|
-D QT_FEATURE_openssl_linked=ON \
|
|
-D QT_FEATURE_system_sqlite=ON \
|
|
-Wno-dev
|
|
|
|
cmake --build build
|
|
DESTDIR=$PKG cmake --install build
|
|
|
|
rm -r $PKG/usr/share/doc
|
|
|
|
# Install useful symlinks
|
|
install -d $PKG/usr/bin
|
|
for file in $PKG/usr/lib/qt6/bin/*; do
|
|
ln -s ../lib/qt6/bin/$(basename $file) $PKG/usr/bin/$(basename $file)-qt6
|
|
#ln -s ../lib/qt6/bin/$(basename $file) $PKG/usr/bin/$(basename $file)
|
|
done
|
|
}
|