40344bf4bb
[ci skip]
50 lines
1.6 KiB
Bash
50 lines
1.6 KiB
Bash
# Template file for 'kwin'
|
|
pkgname=kwin
|
|
version=5.19.1
|
|
revision=2
|
|
build_style=cmake
|
|
configure_args="-DBUILD_TESTING=OFF"
|
|
hostmakedepends="extra-cmake-modules gettext breeze pkg-config"
|
|
makedepends="plasma-framework-devel kcmutils-devel knewstuff-devel
|
|
kscreenlocker-devel kinit-devel xcb-util-cursor-devel qt5-multimedia-devel
|
|
kdecoration-devel libxkbcommon-devel libinput-devel libSM-devel
|
|
libICE-devel xcb-util-wm-devel qt5-sensors-devel libcap-devel
|
|
kwayland-server-devel"
|
|
depends="breeze hicolor-icon-theme kinit qt5-core>=5.15.0<5.15.1"
|
|
short_desc="KDE Window manager"
|
|
maintainer="John <johnz@posteo.net>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://projects.kde.org/projects/plasma/kwin"
|
|
distfiles="${KDE_SITE}/plasma/${version}/${pkgname}-${version}.tar.xz"
|
|
checksum=c9b072699d700abc87b36f6b513d6c2d785c540fbb9e39d4d33ab33e85a6826e
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" qt5-qmake qt5-host-tools kcoreaddons kconfig"
|
|
configure_args+=" -DDESKTOPTOJSON_EXECUTABLE=/usr/bin/desktoptojson"
|
|
fi
|
|
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
makedepends+=" libatomic-devel"
|
|
fi
|
|
|
|
post_extract() {
|
|
_qt5_dep_ver="${depends#*>=}"
|
|
_qt5_dep_ver="${_qt5_dep_ver%<*}"
|
|
_qt5_version="$(xbps-uhelper version qt5-core)"
|
|
|
|
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
|
|
}
|
|
|
|
kwin-devel_package() {
|
|
short_desc+=" - development"
|
|
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/cmake
|
|
}
|
|
}
|