fcitx-unikey: split qt5 out, drop build_options

build_options was added to avoid Qt5 dependencies,
turn out it can be splited out.
This commit is contained in:
Đoàn Trần Công Danh 2020-05-16 00:18:29 +07:00
parent 37d806c809
commit d55020ec00
2 changed files with 14 additions and 10 deletions

1
srcpkgs/fcitx-unikey-qt5 Symbolic link
View file

@ -0,0 +1 @@
fcitx-unikey

View file

@ -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 <congdanhqx@gmail.com>"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
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
}
}