mirror of
https://github.com/getsolus/packages.git
synced 2025-04-25 20:30:37 +03:00
59 lines
1.3 KiB
YAML
59 lines
1.3 KiB
YAML
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-tools
|
|
# - qt5-wayland
|
|
# - qt5-websockets
|
|
# - qt5-xmlpatterns
|
|
#
|
|
# T4:
|
|
# - qt5-speech
|
|
# - qt5-webchannel
|
|
#
|
|
# T5:
|
|
# - qt5-webengine
|