kconfig: fix libexecdir location
This commit is contained in:
parent
22054be835
commit
ef5a767ea4
2 changed files with 14 additions and 5 deletions
|
@ -14,12 +14,12 @@ of cross-build, since these cmake directive lines are always evalued at *their*
|
|||
else()
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/KF5ConfigCompilerTargets.cmake")
|
||||
+ if(CMAKE_CROSSCOMPILING)
|
||||
+ set_target_properties(KF5::kconfig_compiler PROPERTIES IMPORTED_LOCATION_NONE /usr/lib/libexec/kf5/kconfig_compiler_kf5)
|
||||
+ set_target_properties(KF5::kconfig_compiler PROPERTIES IMPORTED_LOCATION /usr/lib/libexec/kf5/kconfig_compiler_kf5)
|
||||
+ set_target_properties(KF5::kconfig_compiler PROPERTIES IMPORTED_LOCATION_NONE /usr/libexec/kf5/kconfig_compiler_kf5)
|
||||
+ set_target_properties(KF5::kconfig_compiler PROPERTIES IMPORTED_LOCATION /usr/libexec/kf5/kconfig_compiler_kf5)
|
||||
+ endif()
|
||||
+ if(CMAKE_CROSSCOMPILING)
|
||||
+ set_target_properties(KF5::kconf_update PROPERTIES IMPORTED_LOCATION_NONE /usr/lib/libexec/kf5/kconf_update)
|
||||
+ set_target_properties(KF5::kconf_update PROPERTIES IMPORTED_LOCATION /usr/lib/libexec/kf5/kconf_update)
|
||||
+ set_target_properties(KF5::kconf_update PROPERTIES IMPORTED_LOCATION_NONE /usr/libexec/kf5/kconf_update)
|
||||
+ set_target_properties(KF5::kconf_update PROPERTIES IMPORTED_LOCATION /usr/libexec/kf5/kconf_update)
|
||||
+ endif()
|
||||
endif()
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/KF5ConfigMacros.cmake")
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'kconfig'
|
||||
pkgname=kconfig
|
||||
version=5.100.1
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=cmake
|
||||
hostmakedepends="kcoreaddons extra-cmake-modules qt5-host-tools qt5-tools-devel"
|
||||
makedepends="qt5-devel qt5-tools-devel qt5-declarative-devel"
|
||||
|
@ -18,6 +18,15 @@ do_check() {
|
|||
ctest -E 'kconfigcore-kconfigtest'
|
||||
}
|
||||
|
||||
post_install() {
|
||||
# Backward compatible symlink
|
||||
vmkdir usr/lib/libexec/kf5
|
||||
ln -s ../../../libexec/kf5/kconf_update \
|
||||
${DESTDIR}/usr/lib/libexec/kf5
|
||||
ln -s ../../../libexec/kf5/kconfig_compiler_kf5 \
|
||||
${DESTDIR}/usr/lib/libexec/kf5
|
||||
}
|
||||
|
||||
kconfig-devel_package() {
|
||||
short_desc+=" - development"
|
||||
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
||||
|
|
Loading…
Add table
Reference in a new issue