void-packages/srcpkgs/uim/template
Đoàn Trần Công Danh e7ca4f4527 uim: ship a notice for -anthy
Close: #29981
2021-04-15 21:39:37 +07:00

89 lines
2.1 KiB
Bash

# Template file for 'uim'
pkgname=uim
version=1.8.8
revision=5
build_style=gnu-configure
build_helper=qmake
configure_args="--enable-pref --enable-fep --with-gtk2 --with-gtk3
--with-libgcroots=installed
--with-qt5 --with-qt5-immodule --with-x --with-anthy-utf8 --with-skk"
hostmakedepends="pkg-config intltool qt5-host-tools qt5-qmake automake
libtool gettext-devel"
makedepends="gtk+-devel gtk+3-devel qt5-devel ncurses-devel anthy-devel
libgcroots-devel qt5-x11extras-devel"
short_desc="Multilingual input method library and environment"
maintainer="Kazuho Sakoda <hyonhyoro.kazuho@gmail.com>"
license="BSD-3-Clause"
homepage="https://github.com/uim/uim/wiki"
distfiles="https://github.com/uim/uim/releases/download/${version}/uim-${version}.tar.bz2"
checksum=34599bbcc4e5ab87832370763e38be5100984a64237555e9234a1ea225a0fadc
CFLAGS="-fcommon"
pre_configure() {
./autogen.sh
}
post_install() {
vlicense COPYING
}
uim-gtk2_package() {
short_desc+=" - GTK2 IM module"
pkg_install() {
vmove usr/bin/uim-input-pad-ja
vmove "usr/bin/uim-*-gtk"
vmove usr/bin/uim-toolbar-gtk-systray
vmove "usr/libexec/uim-*-gtk"
vmove usr/lib/gtk-2.0
vmove usr/share/applications
}
}
uim-gtk3_package() {
short_desc+=" - GTK3 IM module"
pkg_install() {
vmove "usr/bin/uim-*-gtk3"
vmove usr/bin/uim-toolbar-gtk3-systray
vmove "usr/libexec/uim-*-gtk3"
vmove usr/lib/gtk-3.0
}
}
uim-qt_package() {
short_desc+=" - Qt5 IM module"
pkg_install() {
vmove "usr/bin/uim-*-qt5"
vmove usr/libexec/uim-candwin-qt5
vmove usr/lib/qt5
}
}
uim-anthy_package() {
short_desc+=" - Anthy IME"
pkg_install() {
vmove "usr/lib/uim/plugin/libuim-anthy*.so"
vmove "usr/share/uim/anthy*.scm"
vmove "usr/share/uim/pixmaps/anthy*.png"
vdoc "${FILESDIR}/README.voidlinux"
}
}
uim-skk_package() {
short_desc+=" - SKK IME"
pkg_install() {
vmove usr/lib/uim/plugin/libuim-skk.so
vmove "usr/share/uim/skk*.scm"
vmove "usr/share/uim/pixmaps/skk*"
}
}
uim-devel_package() {
depends="uim-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}