diff --git a/srcpkgs/libfcitx-qt5/patches/cmake-config-for-cross.patch b/srcpkgs/libfcitx-qt5/patches/cmake-config-for-cross.patch new file mode 100644 index 0000000000..44a1d4e313 --- /dev/null +++ b/srcpkgs/libfcitx-qt5/patches/cmake-config-for-cross.patch @@ -0,0 +1,28 @@ +diff --git a/dbusaddons/CMakeLists.txt b/dbusaddons/CMakeLists.txt +index 75f4ab8..2299330 100644 +--- a/dbusaddons/CMakeLists.txt ++++ b/dbusaddons/CMakeLists.txt +@@ -51,7 +51,8 @@ generate_export_header(FcitxQt5DBusAddons BASE_NAME FcitxQtDBusAddons) + add_library(FcitxQt5::DBusAddons ALIAS FcitxQt5DBusAddons) + + target_include_directories(FcitxQt5DBusAddons PUBLIC "$") +-target_include_directories(FcitxQt5DBusAddons INTERFACE "$") ++target_include_directories(FcitxQt5DBusAddons ++ INTERFACE $) + + set_target_properties(FcitxQt5DBusAddons + PROPERTIES VERSION 1.0 +diff --git a/widgetsaddons/CMakeLists.txt b/widgetsaddons/CMakeLists.txt +index 4d2b29e..bad852e 100644 +--- a/widgetsaddons/CMakeLists.txt ++++ b/widgetsaddons/CMakeLists.txt +@@ -52,7 +52,8 @@ generate_export_header(FcitxQt5WidgetsAddons BASE_NAME FcitxQtWidgetsAddons) + add_library(FcitxQt5::WidgetsAddons ALIAS FcitxQt5WidgetsAddons) + + target_include_directories(FcitxQt5WidgetsAddons PUBLIC "$") +-target_include_directories(FcitxQt5WidgetsAddons INTERFACE "$") ++target_include_directories(FcitxQt5WidgetsAddons ++ INTERFACE $) + + set_target_properties(FcitxQt5WidgetsAddons + PROPERTIES VERSION 1.0 diff --git a/srcpkgs/libfcitx-qt5/template b/srcpkgs/libfcitx-qt5/template index 3b9e9e99c4..d5fb0e7aff 100644 --- a/srcpkgs/libfcitx-qt5/template +++ b/srcpkgs/libfcitx-qt5/template @@ -1,21 +1,23 @@ # Template file for 'libfcitx-qt5' pkgname=libfcitx-qt5 version=1.2.3 -revision=1 +revision=2 wrksrc="fcitx-qt5-${version}" build_style=cmake -hostmakedepends="extra-cmake-modules pkg-config" +hostmakedepends="extra-cmake-modules pkg-config qt5-qmake + qt5-host-tools libfcitx" makedepends="fcitx-devel libxkbcommon-devel qt5-devel" short_desc="Flexible Context-aware Input Tool with eXtension - Qt5 IM module" maintainer="Robert La Spina " -license="GPL-2.0-or-later, LGPL-2.1-or-later" +license="GPL-2.0-or-later, LGPL-2.1-or-later, BSD-3-Clause" homepage="https://fcitx-im.org/" distfiles="http://download.fcitx-im.org/fcitx-qt5/fcitx-qt5-${version}.tar.xz" checksum=fef09d3f5a7e6b4860169290c0cfe731a9039793ebbf43f6d823fcb920c3dfa5 +patch_args=-Np1 -if [ "$CROSS_BUILD" ]; then - hostmakedepends+=" qt5-qmake qt5-host-tools libfcitx" -fi +post_install() { + vlicense COPYING.BSD +} libfcitx-qt5-devel_package() { short_desc+=" - development files"