diff --git a/srcpkgs/qt5dxcb-plugin/template b/srcpkgs/qt5dxcb-plugin/template index c764110a16d..f7958abfd95 100644 --- a/srcpkgs/qt5dxcb-plugin/template +++ b/srcpkgs/qt5dxcb-plugin/template @@ -1,6 +1,6 @@ # Template file for 'qt5dxcb-plugin' pkgname=qt5dxcb-plugin -version=1.1.11 +version=1.1.14 revision=1 build_style=qmake make_build_args="VERSION=${version}" @@ -8,13 +8,27 @@ hostmakedepends="pkg-config qt5-qmake" makedepends="cairo-devel libSM-devel libXi-devel libxkbcommon-devel qt5-x11extras-devel xcb-util-image-devel xcb-util-keysyms-devel xcb-util-renderutil-devel xcb-util-wm-devel" +depends="qt5>=5.11.2<5.11.3" short_desc="Qt platform plugins for DDE" maintainer="John " license="GPL-3.0-or-later" homepage="https://github.com/linuxdeepin/qt5dxcb-plugin/" changelog="https://github.com/linuxdeepin/qt5dxcb-plugin/blob/master/CHANGELOG.md" distfiles="https://github.com/linuxdeepin/qt5dxcb-plugin/archive/${version}.tar.gz" -checksum=2ab7784e84da5778d81e37347b67bd6c403630a9d70e8471541b694a8f64a96d +checksum=f94a90497f6f07bdcbdb3fa2e4dbf39ed7187c82574230f6881141e7fce89c66 + +pre_configure() { + _qt5_dep_ver="${depends#*>=}" + _qt5_dep_ver="${_qt5_dep_ver%<*}" + _qt5_version="$(xbps-uhelper version qt5)" + + if [[ "${_qt5_version%_*}" != "${_qt5_dep_ver}" ]]; then + echo + msg_red "Qt5 version doesn't match version listed in \$depends\\n" + msg_red "${_qt5_version%_*} does not match ${_qt5_dep_ver}\\n" + exit 1 + fi +} if [ "$CROSS_BUILD" ]; then hostmakedepends+=" qt5-x11extras-devel"