void-packages/srcpkgs/kdelibs4support/template

36 lines
1.3 KiB
Bash

# Template file for 'kdelibs4support'
pkgname=kdelibs4support
version=5.47.0
revision=1
build_style=cmake
configure_args="-DBUILD_TESTING=OFF"
hostmakedepends="extra-cmake-modules perl-URI pkg-config"
makedepends="kded-devel kemoticons-devel kitemmodels-devel kparts-devel
kunitconversion-devel kdesignerplugin-devel networkmanager-qt5-devel
kdoctools-devel libSM-devel"
depends="kded"
short_desc="KDE Legacy support for kdelibs 4 compatibility"
maintainer="Denis Revin <denis.revin@gmail.com>"
license="LGPL-2"
homepage="https://projects.kde.org/projects/frameworks/kdelibs4support"
distfiles="${KDE_SITE}/frameworks/${version%.*}/portingAids/${pkgname}-${version}.tar.xz"
checksum=40d8343404acab21f39cdd8ecad20d700f3f36173faeed44e4b4aba4ed1032e6
if [ -n "$CROSS_BUILD" ]; then
makedepends+=" qt5-tools-devel"
hostmakedepends+=" qt5-host-tools qt5-qmake python kdoctools kgendesignerplugin kded"
# gettaddrinfo runtime test is always fine (can't be achieved in crossbuild)
configure_args+=" -DHAVE_GOOD_GETADDRINFO_EXITCODE=0"
configure_args+=" -DDESKTOPTOJSON_EXECUTABLE=/usr/bin/desktoptojson"
fi
kdelibs4support-devel_package() {
short_desc+=" - development"
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove usr/lib/*.so
}
}