void-packages/srcpkgs/fcitx-libpinyin/template

44 lines
1.4 KiB
Bash

# Template file for 'fcitx-libpinyin'
pkgname=fcitx-libpinyin
_mversion=20161206
version=0.5.4
revision=1
build_style=cmake
configure_args="-DCMAKE_BUILD_TYPE=None -DENABLE_QT=OFF"
hostmakedepends="pkg-config fcitx libpinyin gettext"
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}.tar.xz
https://download.fcitx-im.org/data/model.text.$_mversion.tar.gz"
checksum="650a846f59a50af5e0ce2e493957885bac59995784bb4e211bf8ad1a83607af3
5c7024e5735389c471f54b867eda0d98c5a40a5e5e75333a9febac107508f704"
skip_extraction=model.text.$_mversion.tar.gz
if [ "$XBPS_WORDSIZE$XBPS_TARGET_ENDIAN" = "${XBPS_TARGET_WORDSIZE}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
# Non empty to forbid xbps-src from generating subpackages
# Other developers argue that conditional define _package is bad.
subpackages=" "
fi
post_extract() {
cp $XBPS_SRCDISTDIR/$pkgname-$version/model.text.$_mversion.tar.gz data
}
fcitx-libpinyin-qt5_package() {
short_desc+=" - Qt5 IM module"
depends="fcitx-libpinyin-${version}_${revision}"
pkg_install() {
vmove usr/lib/fcitx/qt
}
}