void-packages/srcpkgs/fcitx-libpinyin/template

35 lines
1.0 KiB
Bash

# Template file for 'fcitx-libpinyin'
pkgname=fcitx-libpinyin
version=0.5.3
revision=1
build_style=cmake
hostmakedepends="pkg-config gobject-introspection fcitx"
makedepends="libpinyin-devel fcitx-devel"
depends="fcitx"
short_desc="Fcitx wrapper for libpinyin"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="GPL-2.0-or-later"
homepage="https://github.com/fcitx/fcitx-libpinyin"
distfiles="https://download.fcitx-im.org/$pkgname/$pkgname-${version}_dict.tar.xz"
checksum=fccd408b9fad8becebf7f736e3309e775d045d6383742892385b69be91f89b4c
if [ "$XBPS_WORDSIZE" = "$XBPS_TARGET_WORDSIZE" ] &&
[ "$XBPS_TARGET_ENDIAN" = "le" ]
then
configure_args="-DENABLE_QT=ON"
hostmakedepends+=" qt5-devel"
makedepends+=" libfcitx-qt5-devel qt5-webengine-devel
qt5-declarative-devel qt5-webchannel-devel qt5-location-devel"
else
configure_args="-DENABLE_QT=OFF"
subpackages=" "
fi
fcitx-libpinyin-qt5_package() {
short_desc+=" - Qt5 IM module"
depends="fcitx-libpinyin-${version}_${revision}"
pkg_install() {
vmove usr/lib/fcitx/qt
}
}