-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #364 from getsolus/qt5-task
tasks: Add qt5-update task
- Loading branch information
Showing
2 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
version : '3' | ||
|
||
tasks: | ||
qt5-update: | ||
desc: Update qt5 package to latest KDE upstream | ||
dir: '{{.USER_WORKING_DIR}}' | ||
preconditions: | ||
- sh: test -f package.yml | ||
msg: "`package.yml` must exist in the current directory" | ||
- sh: '[[ "$(basename $PWD)" == qt5-* ]]' | ||
msg: "Must be ran from within a qt5 package directory" | ||
cmds: | ||
- | | ||
pkg_name=$(basename $PWD) | ||
qt_name="${pkg_name//5-/}" | ||
upstream_sha=$(git ls-remote https://invent.kde.org/qt/qt/$qt_name.git kde/5.15 | awk '{printf $1}') | ||
current_sha=$(yq '.source.[0] | to_entries | .[0].value' package.yml) | ||
if [ "$upstream_sha" != "$current_sha" ]; then | ||
echo "New upstream commit: $upstream_sha" | ||
sed -i "s|$current_sha|$upstream_sha|g" package.yml | ||
fi | ||
# qt5 build order: | ||
# T1: | ||
# - qt5-base | ||
# | ||
# T2: | ||
# - qt5-declarative | ||
# - qt5-imageformats | ||
# - qt5-networkauth | ||
# - qt5-script | ||
# - qt5-serialport | ||
# - qt5-svg | ||
# - qt5-x11extras | ||
# | ||
# T3: | ||
# - qt5-3d | ||
# - qt5-charts | ||
# - qt5-connectivity | ||
# - qt5-datavis3d | ||
# - qt5-graphicaleffects | ||
# - qt5-location | ||
# - qt5-multimedia | ||
# - qt5-quickcontrols | ||
# - qt5-quickcontrols2 | ||
# - qt5-remoteobjects | ||
# - qt5-scxml | ||
# - qt5-sensors | ||
# - qt5-serialbus | ||
# - qt5-tools | ||
# - qt5-virtualkeyboard | ||
# - qt5-wayland | ||
# - qt5-websockets | ||
# - qt5-xmlpatterns | ||
# | ||
# T4: | ||
# - qt5-speech | ||
# - qt5-translations | ||
# - qt5-webchannel | ||
# | ||
# T5: | ||
# - qt5-webengine | ||
# | ||
# T6: | ||
# - qt5-webview |