New package: fcitx-libpinyin-0.5.3

This commit is contained in:
Đoàn Trần Công Danh 2020-05-15 23:39:09 +07:00
parent e81186079e
commit 37d806c809
3 changed files with 36 additions and 0 deletions

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

@ -0,0 +1 @@
fcitx-libpinyin

View file

@ -0,0 +1,34 @@
# 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
}
}

View file

@ -0,0 +1 @@
pattern='fcitx-libpinyin-\K[\d.]+(?=_dict)'