From d55020ec001bd78b1430a4b5eb23431528aaf735 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sat, 16 May 2020 00:18:29 +0700 Subject: [PATCH] fcitx-unikey: split qt5 out, drop build_options build_options was added to avoid Qt5 dependencies, turn out it can be splited out. --- srcpkgs/fcitx-unikey-qt5 | 1 + srcpkgs/fcitx-unikey/template | 23 +++++++++++++---------- 2 files changed, 14 insertions(+), 10 deletions(-) create mode 120000 srcpkgs/fcitx-unikey-qt5 diff --git a/srcpkgs/fcitx-unikey-qt5 b/srcpkgs/fcitx-unikey-qt5 new file mode 120000 index 0000000000..cb821fba43 --- /dev/null +++ b/srcpkgs/fcitx-unikey-qt5 @@ -0,0 +1 @@ +fcitx-unikey \ No newline at end of file diff --git a/srcpkgs/fcitx-unikey/template b/srcpkgs/fcitx-unikey/template index 62d8e3f8bb..6c49fd1d1e 100644 --- a/srcpkgs/fcitx-unikey/template +++ b/srcpkgs/fcitx-unikey/template @@ -1,20 +1,23 @@ # Template file for 'fcitx-unikey' pkgname=fcitx-unikey version=0.2.7 -revision=1 +revision=2 build_style=cmake -configure_args="-DENABLE_QT=$(vopt_if qt5 ON OFF)" -hostmakedepends="pkg-config gobject-introspection" -makedepends="fcitx-devel gettext-devel $(vopt_if qt5 libfcitx-qt5-devel)" +configure_args="-DENABLE_QT=ON" +hostmakedepends="pkg-config gobject-introspection gettext fcitx qt5-devel" +makedepends="libfcitx-qt5-devel" +depends="fcitx" short_desc="Support unikey (Vietnamese input method) for fcitx" -maintainer="Doan Tran Cong Danh " +maintainer="Đoàn Trần Công Danh " license="GPL-3.0-or-later" homepage="https://gitlab.com/fcitx/fcitx-unikey" distfiles="https://download.fcitx-im.org/${pkgname}/${pkgname}-${version}.tar.xz" checksum=e750774b73b08e51148b963736d8207e50c3973e5456b6569cb7ad86831e0e59 -build_options="qt5" -desc_option_qt5="Support Qt5 applications" -if [ "$CROSS_BUILD" ]; then - hostmakedepends+=" fcitx" -fi +fcitx-unikey-qt5_package() { + short_desc+=" - Qt5 IM module" + depends="fcitx-unikey-${version}_${revision}" + pkg_install() { + vmove usr/lib/fcitx/qt + } +}