New package: fcitx5-gtk-5.0.6

This commit is contained in:
Đoàn Trần Công Danh 2021-03-22 00:21:37 +07:00 committed by Đoàn Trần Công Danh
parent 140243e88f
commit 995f38c702
6 changed files with 76 additions and 0 deletions

View File

@ -2119,6 +2119,7 @@ libfcitx-qt5.so.0 libfcitx-qt5-0.1.3_1
libFcitx5Utils.so.2 libfcitx5-5.0.5_1
libFcitx5Core.so.7 libfcitx5-5.0.5_1
libFcitx5Config.so.6 libfcitx5-5.0.5_1
libFcitx5GClient.so.2 fcitx5-gtk-5.0.4_1
libdruntime-ldc-debug-shared.so.94 ldc-runtime-1.24.0_1
libdruntime-ldc-shared.so.94 ldc-runtime-1.24.0_1
libphobos2-ldc-shared.so.94 ldc-runtime-1.24.0_1

1
srcpkgs/fcitx5-gtk+2 Symbolic link
View File

@ -0,0 +1 @@
fcitx5-gtk

1
srcpkgs/fcitx5-gtk+3 Symbolic link
View File

@ -0,0 +1 @@
fcitx5-gtk

1
srcpkgs/fcitx5-gtk-devel Symbolic link
View File

@ -0,0 +1 @@
fcitx5-gtk

View File

@ -0,0 +1,71 @@
# Template file for 'fcitx5-gtk'
pkgname=fcitx5-gtk
version=5.0.6
revision=1
build_style=cmake
build_helper=gir
configure_args="$(vopt_bool gir ENABLE_GIR)"
hostmakedepends="cldr-emoji-annotation pkg-config gettext doxygen
extra-cmake-modules glib-devel"
makedepends="libfcitx5-devel libglib-devel fmt-devel
gtk+-devel gtk+3-devel gtk4-devel"
short_desc="Fcitx v5 - GTK common"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="LGPL-2.1-or-later"
homepage="https://fcitx-im.org/wiki/Fcitx"
distfiles="https://download.fcitx-im.org/fcitx5/fcitx5-gtk/fcitx5-gtk-${version}.tar.xz"
checksum=01e4a8c571a53af830a0e9e7436b4edb6a87a8f92efb0c423f1142ccae4e991f
lib32disabled=yes
build_options="gir"
build_options_default="gir"
post_configure() {
find build -name cmake_install.cmake -exec \
sed -i -e 's,"//\+usr,"/usr,' {} +
}
post_install() {
sed -i '/prefix=/!s,/usr,${exec_prefix},' \
"${DESTDIR}/usr/lib/pkgconfig"/*.pc
sed -i '/INTERFACE_INCLUDE_DIRECTORIES/s,/usr,${_IMPORT_PREFIX},g' \
"${DESTDIR}/usr/lib/cmake"/*/*Targets.cmake
}
fcitx5-gtk+2_package() {
short_desc="${short_desc/common/+2 IM Modules}"
lib32disabled=yes
pkg_install() {
vmove usr/lib/gtk-2.0
}
}
fcitx5-gtk+3_package() {
short_desc="${short_desc/common/+3 IM Modules}"
lib32disabled=yes
pkg_install() {
vmove usr/lib/gtk-3.0
}
}
fcitx5-gtk4_package() {
short_desc="${short_desc/common/4 IM Modules}"
lib32disabled=yes
pkg_install() {
vmove usr/lib/gtk-4.0
}
}
fcitx5-gtk-devel_package() {
short_desc+=" - development files"
depends="fcitx5-gtk>=${version}_${revision} libglib-devel"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}

1
srcpkgs/fcitx5-gtk4 Symbolic link
View File

@ -0,0 +1 @@
fcitx5-gtk