void-packages/srcpkgs/kservice/template
Jürgen Buchmüller 194cf9a127 kservice: fix cross
2017-02-23 03:01:17 +01:00

34 lines
1.1 KiB
Bash

# Template file for 'kservice'
pkgname=kservice
version=5.29.0
revision=1
build_style=cmake
configure_args="-DBUILD_TESTING=OFF"
hostmakedepends="extra-cmake-modules flex bison"
makedepends="kconfig-devel kcrash-devel kdbusaddons-devel ki18n-devel"
short_desc="KDE Plugin framework for desktop services"
maintainer="Denis Revin <denis.revin@gmail.com>"
license="LGPL-2"
homepage="https://projects.kde.org/projects/frameworks/kservice"
distfiles="http://download.kde.org/stable/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=8796ff345f09ac422abbc752b441ceee2f6113a591e68e7c10e4a2cad9838010
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools qt5-devel"
# The build scripts try to run the target's /usr/bin/meinproc5
# which is why kdoctools(-devel) is not used when cross compiling.
# TODO: find a way to enforce cmake to use the host's /usr/bin/meinproc5 instead
else
makedepends+=" kdoctools-devel"
fi
kservice-devel_package() {
short_desc+=" - development"
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/qt5/mkspecs
vmove usr/lib/cmake
vmove usr/lib/*.so
}
}