1
0
mirror of https://github.com/SerenityOS/serenity synced 2024-07-09 05:00:46 +00:00
serenity/Ports/qt6-qt5compat/package.sh
Tim Schumacher 2732545b4c Ports: Ensure that the download filename matches the URL basename
This is a preparation step for removing support for explicitly setting a
download filename entirely.
2023-08-08 19:57:43 +02:00

33 lines
931 B
Bash
Executable File

#!/usr/bin/env -S bash ../.port_include.sh
port='qt6-qt5compat'
version='6.4.0'
workdir="qt5compat-everywhere-src-${version}"
useconfigure='true'
files=(
"https://download.qt.io/official_releases/qt/$(cut -d. -f1,2 <<< ${version})/${version}/submodules/qt5compat-everywhere-src-${version}.tar.xz qt5compat-everywhere-src-${version}.tar.xz 73475d0837f78246d509199f211a35c71fc36cccf64b3de258ebc6387194a4c0"
)
depends=(
'qt6-qtbase'
'libiconv'
)
configure() {
export LDFLAGS='-liconv'
run cmake -GNinja \
-DCMAKE_TOOLCHAIN_FILE="${SERENITY_BUILD_DIR}/CMakeToolchain.txt" \
-DCMAKE_CROSSCOMPILING=ON \
-DQT_BUILD_TOOLS_WHEN_CROSSCOMPILING=ON \
-DQT_HOST_PATH="$(qmake6 -query QT_HOST_PREFIX)" \
-DQT_HOST_PATH_CMAKE_DIR="$(qmake6 -query QT_HOST_LIBS)/cmake" \
-DQT_FEATURE_cxx20=ON
unset LDFLAGS
}
build() {
run ninja
}
install() {
run ninja install
}