1
0
mirror of https://github.com/SerenityOS/serenity synced 2024-07-09 03:50:45 +00:00
serenity/Ports/qt6-qt5compat/package.sh
2022-12-03 23:16:16 +00:00

32 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 qt6-qt5compat-${version}.tar.xz 73475d0837f78246d509199f211a35c71fc36cccf64b3de258ebc6387194a4c0"
auth_type='sha256'
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
}