48 lines
1.5 KiB
Bash
48 lines
1.5 KiB
Bash
# Template file for 'libime-jyutping'
|
|
pkgname=libime-jyutping
|
|
version=1.0.2
|
|
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
|
|
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.xz
|
|
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="8e948b4d1a1c1586c7e7c2b61e2d4d3d4e83996a791ef685388bed6f681433b3
|
|
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
|
|
}
|
|
}
|