From b8c33996993b4fb0af63aa66e95d60ae6ee02955 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 18:32:12 +0700 Subject: [PATCH] New package: fcitx5-chinese-addons-5.0.5 --- srcpkgs/fcitx5-chinese-addons-devel | 1 + srcpkgs/fcitx5-chinese-addons-icons | 1 + .../fcitx5-chinese-addons-pinyin-dict-manager | 1 + srcpkgs/fcitx5-chinese-addons/template | 58 +++++++++++++++++++ 4 files changed, 61 insertions(+) create mode 120000 srcpkgs/fcitx5-chinese-addons-devel create mode 120000 srcpkgs/fcitx5-chinese-addons-icons create mode 120000 srcpkgs/fcitx5-chinese-addons-pinyin-dict-manager create mode 100644 srcpkgs/fcitx5-chinese-addons/template diff --git a/srcpkgs/fcitx5-chinese-addons-devel b/srcpkgs/fcitx5-chinese-addons-devel new file mode 120000 index 0000000000..20d63bef80 --- /dev/null +++ b/srcpkgs/fcitx5-chinese-addons-devel @@ -0,0 +1 @@ +fcitx5-chinese-addons \ No newline at end of file diff --git a/srcpkgs/fcitx5-chinese-addons-icons b/srcpkgs/fcitx5-chinese-addons-icons new file mode 120000 index 0000000000..20d63bef80 --- /dev/null +++ b/srcpkgs/fcitx5-chinese-addons-icons @@ -0,0 +1 @@ +fcitx5-chinese-addons \ No newline at end of file diff --git a/srcpkgs/fcitx5-chinese-addons-pinyin-dict-manager b/srcpkgs/fcitx5-chinese-addons-pinyin-dict-manager new file mode 120000 index 0000000000..20d63bef80 --- /dev/null +++ b/srcpkgs/fcitx5-chinese-addons-pinyin-dict-manager @@ -0,0 +1 @@ +fcitx5-chinese-addons \ No newline at end of file diff --git a/srcpkgs/fcitx5-chinese-addons/template b/srcpkgs/fcitx5-chinese-addons/template new file mode 100644 index 0000000000..a37a025d7a --- /dev/null +++ b/srcpkgs/fcitx5-chinese-addons/template @@ -0,0 +1,58 @@ +# Template file for 'fcitx5-chinese-addons' +pkgname=fcitx5-chinese-addons +version=5.0.5 +revision=1 +build_style=cmake +hostmakedepends="pkg-config gettext doxygen extra-cmake-modules qt5-qmake + qt5-host-tools libime-utils" +makedepends="libfcitx5-devel fmt-devel opencc-devel fcitx5-lua-devel + libcurl-devel qt5-webkit-devel boost-devel libime-devel fcitx5-qt5-devel" +depends="fcitx5-chinese-addons-icons" +short_desc="Fcitx5 - Chinese related addon" +maintainer="Đoàn Trần Công Danh " +license="GPL-2.0-or-later, LGPL-2.1-or-later" +homepage="https://fcitx-im.org/wiki/Fcitx" +_pytable_version=20121124 +_pystroke_version=20121124 +distfiles="https://download.fcitx-im.org/fcitx5/fcitx5-chinese-addons/fcitx5-chinese-addons-${version}.tar.xz + http://download.fcitx-im.org/data/py_table-${_pytable_version}.tar.gz + http://download.fcitx-im.org/data/py_stroke-${_pystroke_version}.tar.gz" +checksum="7917c29643d0bfe489cda2f75201059b8e52cc3c06f86b3059ee0844b33a2048 + 42146ac97de6c13d55f9e99ed873915f4c66739e9c11532a34556badf9792c04 + 8eb128a9bfa43952e67cf2fcee1fd134c6f4cfd317bc2f6c38a615f5eb64e248" +skip_extraction=" + py_table-${_pytable_version}.tar.gz + py_stroke-${_pystroke_version}.tar.gz" +lib32disabled=yes + +post_extract() { + local _srcdistdir=${XBPS_SRCDISTDIR}/${pkgname}-${version} + local _file + for _file in ${skip_extraction}; do + cp ${_srcdistdir}/$_file modules/pinyinhelper + done +} + +fcitx5-chinese-addons-icons_package() { + short_desc+=" - icons" + pkg_install() { + vmove usr/share/icons + } +} + +fcitx5-chinese-addons-pinyin-dict-manager_package() { + short_desc+=" - Pinyin Dictionaries Manager" + depends="fcitx5-chinese-addons>=${version}_${revision}" + pkg_install() { + vmove usr/lib/fcitx5/qt5 + } +} + +fcitx5-chinese-addons-devel_package() { + short_desc+=" - development files" + depends="fcitx5-chinese-addons>=${version}_${revision}" + pkg_install() { + vmove usr/include + vmove usr/lib/cmake + } +}