Skip to content

Commit

Permalink
Merge pull request #364 from getsolus/qt5-task
Browse files Browse the repository at this point in the history
tasks: Add qt5-update task
  • Loading branch information
TraceyC77 authored Oct 1, 2023
2 parents bf02bda + 2b3cddc commit 913ba1b
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ vars:
PSPECFILE:
sh: if [ -f "{{ .USER_WORKING_DIR }}/package.yml" ]; then echo "pspec_x86_64.xml"; else echo "pspec.xml"; fi;

includes:
qt5:
taskfile: ./common/Tasks/Taskfile.qt5.yml

tasks:
# Ensure people new to go-task and used to 'make help' have an easier time
help:
Expand Down
65 changes: 65 additions & 0 deletions common/Tasks/Taskfile.qt5.yml
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

0 comments on commit 913ba1b

Please sign in to comment.