void-packages/srcpkgs/uim/template
2018-09-15 15:52:04 -03:00

78 lines
1.9 KiB
Bash

# Template file for 'uim'
pkgname=uim
version=1.8.8
revision=2
build_style=gnu-configure
configure_args="--enable-pref --enable-fep --with-gtk2 --with-gtk3
--with-qt5 --with-qt5-immodule --with-x --with-anthy-utf8 --with-skk"
hostmakedepends="pkg-config intltool"
makedepends="gtk+-devel gtk+3-devel qt5-devel ncurses-devel anthy-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
post_install() {
vlicense COPYING
}
uim-gtk2_package() {
short_desc+=" - GTK2 IM module"
pkg_install() {
vmove "usr/bin/uim-*-gtk"
vmove usr/bin/uim-toolbar-gtk-systray
vmove "usr/libexec/uim-*-gtk"
vmove usr/lib/gtk-2.0
}
}
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"
}
}
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/*.a"
vmove "usr/lib/*.so"
}
}