Skip to content

Commit

Permalink
build: 🏗️ Update build and run scripts to use Qt6
Browse files Browse the repository at this point in the history
  • Loading branch information
pvshvp-oss committed Mar 21, 2024
1 parent e3c5470 commit 5f697d3
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 99 deletions.
65 changes: 32 additions & 33 deletions packaging/calamares-core-git/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,35 @@ pkgdesc='Calamares Installer for RebornOS. This is practically just bare Calamar
url='https://github.com/RebornOS-Team/calamares-core'
license=('GPL3')
depends=(
'qt5-base' # For Qt modules
'qt6-base' # For Qt modules
'python' # For python modules
'kirigami2' # For Qt-Quick (QML) modules
'kirigami' # For Qt-Quick (QML) modules
'kpmcore' # For partitioning

'mkinitcpio-openswap' # For swap to be used with encryption

# Temporary stand-in
'qt5-location'
'qt5-svg'
'qt5-tools'
'qt5-webengine'
'qt5-xmlpatterns'
'qt5ct'
'qqc2-desktop-style5'
'polkit-qt5'
'kconfig5'
'kcoreaddons5'
'kdbusaddons5'
'ki18n5'
'kpackage5'
'kparts5'
'qt6-location'
'qt6-svg'
'qt6-tools'
'qt6-webengine'
# 'qt5-xmlpatterns' # TODO
'qt6ct'
'qqc2-desktop-style'
'polkit-qt6'
'kconfig'
'kcoreaddons'
'kdbusaddons'
'ki18n'
'kpackage'
'kparts'
'kpmcore'
'appstream-qt'
'libatasmart'
'libpwquality'
'plasma-framework5'
# 'plasma-framework5' # TODO
'parted'
'solid5'
'solid'
'udisks2'
'yaml-cpp'
'polkit'
Expand All @@ -49,42 +49,41 @@ depends=(
)
optdepends=(
'breeze' # For theming
'qt5ct' # For theming
'qt6ct' # For theming
)
provides=('calamares')
conflicts=('calamares' 'calamares-core' 'calamares-core-git' 'calamares-core-local')
makedepends=(
'extra-cmake-modules'
'base-devel' # For Arch Linux to build packages.
'git' # For Arch Linux to build packages

'gcc' # Required for building Calamares.
'cmake' # Required for building Calamares.
'yaml-cpp' # Required for building Calamares.
'qt5-base' # Required for building Calamares.
'qt6-base' # Required for building Calamares.

'python' # Optional for building Calamares, specifically for PyBind11 (which we use as of 2024-02-09), and Python modules (which we use as of 2024-02-09).
'extra-cmake-modules' # Optional for building Calamares, specifically for building tests.
'python-yaml' # Optional for building Calamares, specifically for configvalidator.
'python-jsonschema' # Optional for building Calamares, specifically for configvalidator.
'kpmcore' # Optional for building Calamares, specifically for building libcalamares.
'gettext' # Optional for building Calamares, specifically for translations.
'ki18n5' # Optional for building Calamares, specifically for translations.
'qt5-declarative' # Optional for building Calamares, specifically for QML.
'kwidgetsaddons5' # Optional for building Calamares, specifically for NA.
'kcoreaddons5' # Optional for building Calamares, specifically for NA.
'ki18n' # Optional for building Calamares, specifically for translations.
'qt6-declarative' # Optional for building Calamares, specifically for QML.
'kwidgetsaddons' # Optional for building Calamares, specifically for NA.
'kcoreaddons' # Optional for building Calamares, specifically for NA.

'icu' # Required for building the modules users, and usersq.
'kparts5' # Required for building the module interactiveterminal.
'kservice5' # Required for building the module interactiveterminal.
'kparts' # Required for building the module interactiveterminal.
'kservice' # Required for building the module interactiveterminal.
'kpmcore' # Required for building the modules partition, fsresizer.
'plasma-framework5' # Required for building the module plasmalnf.
'kpackage5' # Required for building the module plasmalnf.
# 'plasma-framework5' # TODO # Required for building the module plasmalnf.
'kpackage' # Required for building the module plasmalnf.

'ki18n5' # Optional for building the module users.
'kconfig5' # Optional for building the module plasmalnf, plymouthcfg.
'plasma-framework5' # Optional for building the module plymouthcfg.
'kpackage5' # Optional for building the module plymouthcfg.
'ki18n' # Optional for building the module users.
'kconfig' # Optional for building the module plasmalnf, plymouthcfg.
# 'plasma-framework5' # TODO # Optional for building the module plymouthcfg.
'kpackage' # Optional for building the module plymouthcfg.
'libxcrypt' # Optional for building the module users.
'pkgconf' # Optional for building the module users.
'libpwquality' # Optional for building the module users.
Expand Down
64 changes: 32 additions & 32 deletions packaging/calamares-core-local/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,35 @@ pkgdesc='Calamares Installer for RebornOS. This is practically just bare Calamar
url='https://github.com/RebornOS-Team/calamares-core'
license=('GPL3')
depends=(
'qt5-base' # For Qt modules
'qt6-base' # For Qt modules
'python' # For python modules
'kirigami2' # For Qt-Quick (QML) modules
'kirigami' # For Qt-Quick (QML) modules
'kpmcore' # For partitioning

'mkinitcpio-openswap' # For swap to be used with encryption

# Temporary stand-in
'qt5-location'
'qt5-svg'
'qt5-tools'
'qt5-webengine'
'qt5-xmlpatterns'
'qt5ct'
'qqc2-desktop-style5'
'polkit-qt5'
'kconfig5'
'kcoreaddons5'
'kdbusaddons5'
'ki18n5'
'kpackage5'
'kparts5'
'qt6-location'
'qt6-svg'
'qt6-tools'
'qt6-webengine'
# 'qt5-xmlpatterns' # TODO
'qt6ct'
'qqc2-desktop-style'
'polkit-qt6'
'kconfig'
'kcoreaddons'
'kdbusaddons'
'ki18n'
'kpackage'
'kparts'
'kpmcore'
'appstream-qt'
'libatasmart'
'libpwquality'
'plasma-framework5'
# 'plasma-framework5' # TODO
'parted'
'solid5'
'solid'
'udisks2'
'yaml-cpp'
'polkit'
Expand All @@ -49,7 +49,7 @@ depends=(
)
optdepends=(
'breeze' # For theming
'qt5ct' # For theming
'qt6ct' # For theming
)
provides=('calamares')
conflicts=('calamares' 'calamares-core' 'calamares-core-git' 'calamares-core-local')
Expand All @@ -61,30 +61,30 @@ makedepends=(
'gcc' # Required for building Calamares.
'cmake' # Required for building Calamares.
'yaml-cpp' # Required for building Calamares.
'qt5-base' # Required for building Calamares.
'qt6-base' # Required for building Calamares.

'python' # Optional for building Calamares, specifically for PyBind11 (which we use as of 2024-02-09), and Python modules (which we use as of 2024-02-09).
'extra-cmake-modules' # Optional for building Calamares, specifically for building tests.
'python-yaml' # Optional for building Calamares, specifically for configvalidator.
'python-jsonschema' # Optional for building Calamares, specifically for configvalidator.
'kpmcore' # Optional for building Calamares, specifically for building libcalamares.
'gettext' # Optional for building Calamares, specifically for translations.
'ki18n5' # Optional for building Calamares, specifically for translations.
'qt5-declarative' # Optional for building Calamares, specifically for QML.
'kwidgetsaddons5' # Optional for building Calamares, specifically for NA.
'kcoreaddons5' # Optional for building Calamares, specifically for NA.
'ki18n' # Optional for building Calamares, specifically for translations.
'qt6-declarative' # Optional for building Calamares, specifically for QML.
'kwidgetsaddons' # Optional for building Calamares, specifically for NA.
'kcoreaddons' # Optional for building Calamares, specifically for NA.

'icu' # Required for building the modules users, and usersq.
'kparts5' # Required for building the module interactiveterminal.
'kservice5' # Required for building the module interactiveterminal.
'kparts' # Required for building the module interactiveterminal.
'kservice' # Required for building the module interactiveterminal.
'kpmcore' # Required for building the modules partition, fsresizer.
'plasma-framework5' # Required for building the module plasmalnf.
'kpackage5' # Required for building the module plasmalnf.
# 'plasma-framework5' # TODO # Required for building the module plasmalnf.
'kpackage' # Required for building the module plasmalnf.

'ki18n5' # Optional for building the module users.
'kconfig5' # Optional for building the module plasmalnf, plymouthcfg.
'plasma-framework5' # Optional for building the module plymouthcfg.
'kpackage5' # Optional for building the module plymouthcfg.
'ki18n' # Optional for building the module users.
'kconfig' # Optional for building the module plasmalnf, plymouthcfg.
# 'plasma-framework5' # TODO # Optional for building the module plymouthcfg.
'kpackage' # Optional for building the module plymouthcfg.
'libxcrypt' # Optional for building the module users.
'pkgconf' # Optional for building the module users.
'libpwquality' # Optional for building the module users.
Expand Down
64 changes: 32 additions & 32 deletions packaging/calamares-core/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,35 @@ pkgdesc='Calamares Installer for RebornOS. This is practically just bare Calamar
url='https://github.com/RebornOS-Team/calamares-core'
license=('GPL3')
depends=(
'qt5-base' # For Qt modules
'qt6-base' # For Qt modules
'python' # For python modules
'kirigami2' # For Qt-Quick (QML) modules
'kirigami' # For Qt-Quick (QML) modules
'kpmcore' # For partitioning

'mkinitcpio-openswap' # For swap to be used with encryption

# Temporary stand-in
'qt5-location'
'qt5-svg'
'qt5-tools'
'qt5-webengine'
'qt5-xmlpatterns'
'qt5ct'
'qqc2-desktop-style5'
'polkit-qt5'
'kconfig5'
'kcoreaddons5'
'kdbusaddons5'
'ki18n5'
'kpackage5'
'kparts5'
'qt6-location'
'qt6-svg'
'qt6-tools'
'qt6-webengine'
# 'qt5-xmlpatterns' # TODO
'qt6ct'
'qqc2-desktop-style'
'polkit-qt6'
'kconfig'
'kcoreaddons'
'kdbusaddons'
'ki18n'
'kpackage'
'kparts'
'kpmcore'
'appstream-qt'
'libatasmart'
'libpwquality'
'plasma-framework5'
# 'plasma-framework5' # TODO
'parted'
'solid5'
'solid'
'udisks2'
'yaml-cpp'
'polkit'
Expand All @@ -49,7 +49,7 @@ depends=(
)
optdepends=(
'breeze' # For theming
'qt5ct' # For theming
'qt6ct' # For theming
)
provides=('calamares')
conflicts=('calamares' 'calamares-core' 'calamares-core-git' 'calamares-core-local')
Expand All @@ -60,30 +60,30 @@ makedepends=(
'gcc' # Required for building Calamares.
'cmake' # Required for building Calamares.
'yaml-cpp' # Required for building Calamares.
'qt5-base' # Required for building Calamares.
'qt6-base' # Required for building Calamares.

'python' # Optional for building Calamares, specifically for PyBind11 (which we use as of 2024-02-09), and Python modules (which we use as of 2024-02-09).
'extra-cmake-modules' # Optional for building Calamares, specifically for building tests.
'python-yaml' # Optional for building Calamares, specifically for configvalidator.
'python-jsonschema' # Optional for building Calamares, specifically for configvalidator.
'kpmcore' # Optional for building Calamares, specifically for building libcalamares.
'gettext' # Optional for building Calamares, specifically for translations.
'ki18n5' # Optional for building Calamares, specifically for translations.
'qt5-declarative' # Optional for building Calamares, specifically for QML.
'kwidgetsaddons5' # Optional for building Calamares, specifically for NA.
'kcoreaddons5' # Optional for building Calamares, specifically for NA.
'ki18n' # Optional for building Calamares, specifically for translations.
'qt6-declarative' # Optional for building Calamares, specifically for QML.
'kwidgetsaddons' # Optional for building Calamares, specifically for NA.
'kcoreaddons' # Optional for building Calamares, specifically for NA.

'icu' # Required for building the modules users, and usersq.
'kparts5' # Required for building the module interactiveterminal.
'kservice5' # Required for building the module interactiveterminal.
'kparts' # Required for building the module interactiveterminal.
'kservice' # Required for building the module interactiveterminal.
'kpmcore' # Required for building the modules partition, fsresizer.
'plasma-framework5' # Required for building the module plasmalnf.
'kpackage5' # Required for building the module plasmalnf.
# 'plasma-framework5' # TODO # Required for building the module plasmalnf.
'kpackage' # Required for building the module plasmalnf.

'ki18n5' # Optional for building the module users.
'kconfig5' # Optional for building the module plasmalnf, plymouthcfg.
'plasma-framework5' # Optional for building the module plymouthcfg.
'kpackage5' # Optional for building the module plymouthcfg.
'ki18n' # Optional for building the module users.
'kconfig' # Optional for building the module plasmalnf, plymouthcfg.
# 'plasma-framework5' # TODO # Optional for building the module plymouthcfg.
'kpackage' # Optional for building the module plymouthcfg.
'libxcrypt' # Optional for building the module users.
'pkgconf' # Optional for building the module users.
'libpwquality' # Optional for building the module users.
Expand Down
4 changes: 2 additions & 2 deletions packaging/resources/run_calamares.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ LAUNCH_INSTALLER_COMMAND="env \
HOME="$HOME" \
DEFAULT_USER="$USER" \
PATH=$PATH \
KDE_SESSION_VERSION=5 \
KDE_SESSION_VERSION=6 \
KDE_FULL_SESSION=true \
QT_QUICK_CONTROLS_STYLE="Fusion" \
QT_QPA_PLATFORMTHEME="qt5ct" \
QT_QPA_PLATFORMTHEME="qt6ct" \
calamares "$@""

{
Expand Down

0 comments on commit 5f697d3

Please sign in to comment.