void-packages/srcpkgs/libime-jyutping/template

48 lines
1.5 KiB
Bash

# Template file for 'libime-jyutping'
pkgname=libime-jyutping
version=1.0.11
revision=1
build_style=cmake
build_helper=qemu
hostmakedepends="pkg-config gettext extra-cmake-modules python3 libime-utils"
makedepends="libfcitx5-devel boost-devel libime-devel libzstd-devel
fcitx5-chinese-addons-devel fmt-devel"
short_desc="Libraries for jyutping 粵拼 by libime"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="LGPL-2.1-or-later"
homepage="https://fcitx-im.org/wiki/Fcitx"
_dict_version=20180104
_model_version=20180103
distfiles="https://download.fcitx-im.org/fcitx5/libime-jyutping/libime-jyutping-${version}.tar.zst
https://download.fcitx-im.org/data/jyutping-dict-${_dict_version}.tar.xz
https://download.fcitx-im.org/data/jyutping-model-${_model_version}.tar.xz"
checksum="82691817b0ba995831b4257b6eab12a6dc056ca6ec7388931118ab6be4742d4c
e3a5b13edb8efa2f764245a3232f99ba7e7670e22b8cbe666a4fffa84b35f35b
4f07229e2080f0ee30ce51b016409f260af82a58dd406a01ea5981b59ca87071"
skip_extraction="jyutping-dict-${_dict_version}.tar.xz
jyutping-model-${_model_version}.tar.xz"
post_extract() {
local _srcdistdir=${XBPS_SRCDISTDIR}/${pkgname}-${version}
local _file
for _file in ${skip_extraction}; do
cp ${_srcdistdir}/$_file data
done
}
libime-jyutping-tools_package() {
short_desc+=" - tools"
pkg_install() {
vmove usr/bin
}
}
libime-jyutping-devel_package() {
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/cmake
}
}