2021-10-19 05:30:20 +02:00
|
|
|
# Description: A cross-platform application and UI framework (Development Tools, QtHelp)
|
|
|
|
# URL: https://www.qt.io/
|
2023-07-21 21:28:10 +02:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2021-10-19 05:30:20 +02:00
|
|
|
# Depends on: qt6-declarative
|
|
|
|
# Optional: clang
|
|
|
|
|
|
|
|
name=qt6-tools
|
2023-09-28 21:57:09 +02:00
|
|
|
version=6.5.3
|
2023-05-21 10:24:28 +02:00
|
|
|
release=2
|
2021-10-19 05:30:20 +02:00
|
|
|
source=(https://download.qt.io/official_releases/qt/${version%.*}/$version/submodules/qttools-everywhere-src-$version.tar.xz)
|
|
|
|
|
|
|
|
build() {
|
2023-07-21 21:28:10 +02:00
|
|
|
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/:*$//')"
|
2021-10-19 05:30:20 +02:00
|
|
|
|
2023-07-21 21:28:10 +02:00
|
|
|
cmake -S qttools-everywhere-src-$version -B build $PKGMK_QT6 \
|
|
|
|
-D INSTALL_PUBLICBINDIR=usr/bin \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS"
|
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2021-10-19 05:30:20 +02:00
|
|
|
|
2023-07-21 21:28:10 +02:00
|
|
|
cd $PKG
|
|
|
|
mkdir usr/bin
|
|
|
|
while read _line; do
|
|
|
|
ln -s $_line
|
|
|
|
done < $SRC/build/user_facing_tool_links.txt
|
2021-10-19 05:30:20 +02:00
|
|
|
}
|