45 lines
1.6 KiB
Bash
45 lines
1.6 KiB
Bash
# Template file for 'kdelibs4support'
|
|
pkgname=kdelibs4support
|
|
version=5.84.0
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="
|
|
-DDESKTOPTOJSON_EXECUTABLE=/usr/bin/desktoptojson"
|
|
hostmakedepends="kcoreaddons extra-cmake-modules perl-URI pkg-config
|
|
gettext qt5-host-tools qt5-qmake python kdoctools kgendesignerplugin kded"
|
|
makedepends="kded-devel kemoticons-devel kitemmodels-devel kparts-devel
|
|
kunitconversion-devel kdesignerplugin-devel networkmanager-qt5-devel
|
|
kdoctools-devel libSM-devel ksolid-devel qt5-tools-devel"
|
|
depends="kded"
|
|
checkdepends="$depends dbus plasma-workspace"
|
|
short_desc="KDE Legacy support for kdelibs 4 compatibility"
|
|
maintainer="John <me@johnnynator.dev>"
|
|
license="LGPL-2.0-or-later, LGPL-2.1-or-later"
|
|
homepage="https://invent.kde.org/frameworks/kdelibs4support"
|
|
distfiles="${KDE_SITE}/frameworks/${version%.*}/portingAids/${pkgname}-${version}.tar.xz"
|
|
checksum=373f46d34b04cb6faeca577eaa67472a630b312af59d5851880623ecc0c671e2
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
# gettaddrinfo runtime test is always fine (can't be achieved in crossbuild)
|
|
configure_args+=" -DHAVE_GOOD_GETADDRINFO_EXITCODE=0"
|
|
configure_args+=" -DHAVE_GOOD_GETADDRINFO_EXITCODE__TRYRUN_OUTPUT=0"
|
|
fi
|
|
|
|
do_check() {
|
|
return 0
|
|
cd build
|
|
# kuniqueapptest hangs, other 2 fail
|
|
# the testsuite also has some lingering processes that prevent dbus-run-session to return
|
|
dbus-run-session ctest -E 'kdatetimetest|naturalcomparetest|kuniqueapptest'
|
|
}
|
|
|
|
kdelibs4support-devel_package() {
|
|
short_desc+=" - development"
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/cmake
|
|
vmove usr/lib/qt5/plugins/designer
|
|
vmove usr/lib/*.so
|
|
}
|
|
}
|