kdoctools: fix cross compile
This commit is contained in:
parent
cd00228b46
commit
fb4560183d
|
@ -4,6 +4,7 @@ version=5.84.0
|
|||
revision=1
|
||||
build_style=cmake
|
||||
build_helper=qemu
|
||||
configure_args="-DINSTALL_INTERNAL_TOOLS=ON"
|
||||
hostmakedepends="gettext kcoreaddons extra-cmake-modules perl perl-URI
|
||||
qt5-host-tools qt5-qmake"
|
||||
makedepends="ki18n-devel karchive-devel libxml2-devel libxslt-devel
|
||||
|
@ -16,6 +17,11 @@ homepage="https://invent.kde.org/frameworks/kdoctools"
|
|||
distfiles="${KDE_SITE}/frameworks/${version%.*}/${pkgname}-${version}.tar.xz"
|
||||
checksum=97e653793227600aec3a2236b61018e9c8c2fcfe5b73c94836f206ea558d0df4
|
||||
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
configure_args+=" -DDOCBOOKL10NHELPER_EXECUTABLE=/usr/bin/docbookl10nhelper"
|
||||
hostmakedepends+=" kdoctools-devel"
|
||||
fi
|
||||
|
||||
pre_check() {
|
||||
export PATH="$PATH:${wrksrc}/build/bin"
|
||||
}
|
||||
|
@ -24,9 +30,9 @@ kdoctools-devel_package() {
|
|||
short_desc+=" - development"
|
||||
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
||||
pkg_install() {
|
||||
vmove usr/bin/docbookl10nhelper
|
||||
vmove usr/lib/cmake
|
||||
vmove usr/include
|
||||
vmove "usr/lib/*.so"
|
||||
vbin build/bin/docbookl10nhelper
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue