2014-06-16 05:06:50 +08:00
|
|
|
_pkgbase=fcitx
|
2013-05-06 07:58:15 +08:00
|
|
|
pkgbase=fcitx-gtk
|
|
|
|
pkgname=('fcitx-gtk2' 'fcitx-gtk3')
|
2018-10-30 17:24:36 +08:00
|
|
|
pkgver=4.2.9.6
|
2014-06-16 05:06:50 +08:00
|
|
|
pkgrel=1
|
2013-05-06 07:58:15 +08:00
|
|
|
pkgdesc="Gtk im module for fcitx"
|
2017-09-16 15:06:40 +08:00
|
|
|
arch=('x86_64')
|
|
|
|
url="https://github.com/fcitx/fcitx-gtk"
|
2013-05-06 07:58:15 +08:00
|
|
|
license=('GPL')
|
2017-09-16 15:06:40 +08:00
|
|
|
makedepends=('gtk2' 'gtk3' 'cmake' 'icu' 'opencc' 'iso-codes' 'libxkbfile' 'cairo'
|
|
|
|
'pango' 'dbus' 'qt' 'extra-cmake-modules' 'lua')
|
2018-10-30 17:24:36 +08:00
|
|
|
source=(https://download.fcitx-im.org/$_pkgbase/$_pkgbase-${pkgver}_dict.tar.xz)
|
|
|
|
md5sums=('29e18ea4144c4e059dc2c56fb62d55e5')
|
2013-05-06 07:58:15 +08:00
|
|
|
|
2014-06-16 05:06:50 +08:00
|
|
|
prepare() {
|
|
|
|
cd ${srcdir}/${_pkgbase}-${pkgver}
|
|
|
|
[[ -e build ]] && rm -rf build
|
2013-05-06 07:58:15 +08:00
|
|
|
mkdir build
|
2014-06-16 05:06:50 +08:00
|
|
|
}
|
|
|
|
build(){
|
|
|
|
cd ${srcdir}/${_pkgbase}-${pkgver}/build
|
|
|
|
cmake -DENABLE_GTK3_IM_MODULE=ON \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DENABLE_LUA=On \
|
|
|
|
-DENABLE_GIR=Off \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release ..
|
2013-05-06 07:58:15 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package_fcitx-gtk2 ()
|
|
|
|
{
|
|
|
|
pkgdesc='GTK2 IM Module for fcitx'
|
|
|
|
depends=('gtk2' "fcitx>=$pkgver")
|
|
|
|
install="fcitx-gtk2.install"
|
2014-06-16 05:06:50 +08:00
|
|
|
cd "${srcdir}/${_pkgbase}-${pkgver}/build/src/frontend/gtk2"
|
2013-05-06 07:58:15 +08:00
|
|
|
make DESTDIR=${pkgdir} install
|
|
|
|
}
|
|
|
|
|
|
|
|
package_fcitx-gtk3 ()
|
|
|
|
{
|
|
|
|
pkgdesc='GTK3 IM Module for fcitx'
|
|
|
|
depends=('gtk3' "fcitx>=$pkgver")
|
|
|
|
install="fcitx-gtk3.install"
|
2014-06-16 05:06:50 +08:00
|
|
|
cd "${srcdir}/${_pkgbase}-${pkgver}/build/src/frontend/gtk3"
|
2013-05-06 07:58:15 +08:00
|
|
|
make DESTDIR=${pkgdir} install
|
|
|
|
}
|