From 47b573af07b08245c62a39ee95d10041fc0ede06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Thu, 25 Mar 2021 19:41:51 +0700 Subject: [PATCH] New package: libime-jyutping-1.0.2 --- common/shlibs | 1 + srcpkgs/libime-jyutping-devel | 1 + srcpkgs/libime-jyutping-tools | 1 + srcpkgs/libime-jyutping/template | 47 ++++++++++++++++++++++++++++++++ 4 files changed, 50 insertions(+) create mode 120000 srcpkgs/libime-jyutping-devel create mode 120000 srcpkgs/libime-jyutping-tools create mode 100644 srcpkgs/libime-jyutping/template diff --git a/common/shlibs b/common/shlibs index 5ad8100d0e..508ff0e7f0 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3108,6 +3108,7 @@ librime.so.1 librime-1.2.9_1 libIMECore.so.0 libime-1.0.5_1 libIMEPinyin.so.0 libime-1.0.5_1 libIMETable.so.0 libime-1.0.5_1 +libIMEJyutping.so.1 libime-jyutping-1.0.2_1 libairspy.so.0 libairspy-1.0.9_1 libKF5KDcraw.so.5 libkdcraw5-17.04.3_1 libKF5Kipi.so.32.0.0 libkipi5-17.04.3_1 diff --git a/srcpkgs/libime-jyutping-devel b/srcpkgs/libime-jyutping-devel new file mode 120000 index 0000000000..6f00a5aa54 --- /dev/null +++ b/srcpkgs/libime-jyutping-devel @@ -0,0 +1 @@ +libime-jyutping \ No newline at end of file diff --git a/srcpkgs/libime-jyutping-tools b/srcpkgs/libime-jyutping-tools new file mode 120000 index 0000000000..6f00a5aa54 --- /dev/null +++ b/srcpkgs/libime-jyutping-tools @@ -0,0 +1 @@ +libime-jyutping \ No newline at end of file diff --git a/srcpkgs/libime-jyutping/template b/srcpkgs/libime-jyutping/template new file mode 100644 index 0000000000..46a5ad944e --- /dev/null +++ b/srcpkgs/libime-jyutping/template @@ -0,0 +1,47 @@ +# 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 " +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 + } +}