void-packages/srcpkgs/qt5integration/template
2019-04-05 05:40:55 +02:00

40 lines
1.5 KiB
Bash

# Template file for 'qt5integration'
pkgname=qt5integration
version=0.3.10
revision=1
build_style=qmake
hostmakedepends="qt5-qmake pkg-config"
makedepends="libqtxdg-devel dtkwm-devel dtkwidget-devel mtdev-devel
qt5-svg-devel qt5-x11extras-devel qt5-multimedia-devel"
depends="qt5dxcb-plugin qt5-styleplugins qt5>=5.11.3<5.11.4"
short_desc="Qt platform theme integration plugins for Deepin Desktop Environment"
maintainer="John <johnz@posteo.net>"
license="GPL-3.0-or-later"
homepage="https://github.com/linuxdeepin/qt5integration"
changelog="https://github.com/linuxdeepin/qt5integration/blob/${version}/CHANGELOG.md"
distfiles="https://github.com/linuxdeepin/qt5integration/archive/${version}.tar.gz"
checksum=b65ec71d1e038a4f6c8f63efb825504218d7b5c205090f6ba150a8825b7e5a74
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-devel qt5-x11extras-devel"
pre_configure() {
_qtxdg_version=$(PKG_CONFIG_PATH=${XBPS_CROSS_BASE}/usr/lib/pkgconfig\
pkg-config --modversion Qt5XdgIconLoader)
echo $_qtxdg_version
sed -i -e "s%INCLUDEPATH +=.*%INCLUDEPATH += ${XBPS_CROSS_BASE}/usr/include/qt5xdgiconloader/${_qtxdg_version}%g"\
platformthemeplugin/qt5deepintheme-plugin.pro
}
fi