kf6-kwidgetsaddons: always build designer plugins

This commit is contained in:
Đoàn Trần Công Danh 2025-08-19 10:27:27 +07:00
parent 29fedb4204
commit 90a29cec14

View file

@ -1,11 +1,11 @@
# Template file for 'kf6-kwidgetsaddons'
pkgname=kf6-kwidgetsaddons
version=6.14.0
revision=1
revision=2
build_style=cmake
configure_args="$(vopt_bool designerplugin BUILD_DESIGNERPLUGIN)"
configure_args="-DBUILD_DESIGNERPLUGIN=ON -DKDE_INSTALL_QTPLUGINDIR=lib/qt6/plugins"
hostmakedepends="extra-cmake-modules qt6-tools qt6-base"
makedepends="qt6-base-devel"
makedepends="qt6-base-devel qt6-tools-devel"
short_desc="KWidgetsAddons"
maintainer="John <me@johnnynator.dev>"
license="LGPL-2.1-or-later"
@ -13,17 +13,6 @@ homepage="https://invent.kde.org/frameworks/kwidgetsaddons"
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname#kf6-}-${version}.tar.xz"
checksum=602720bc3e86cba2384f0f45e16c8524a1974796a3d5b7c5c1ed90e768cf121f
build_options="designerplugin"
if [ -z "$CROSS_BUILD" ]; then
build_options_default="designerplugin"
fi
if [ "$build_option_designerplugin" ]; then
makedepends+=" qt6-tools-devel"
nocross="yes"
fi
do_check() {
cd build
# disable failing tests
@ -37,8 +26,6 @@ kf6-kwidgetsaddons-devel_package() {
vmove usr/include
vmove usr/lib/cmake
vmove "usr/lib/*.so"
if [ "$build_option_designerplugin" ]; then
vmove usr/lib/qt6/plugins/designer
fi
vmove usr/lib/qt6/plugins/designer
}
}