2011-09-25 02:41:58 +08:00
|
|
|
#
|
|
|
|
# Apps Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
|
|
|
# Maintainer: Neo Kolokotronis <tetris4@gmail.com>
|
|
|
|
# Contributor: csslayer <wengxt AT gmail com>
|
|
|
|
|
|
|
|
# include global config
|
|
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
|
|
|
|
pkgbase=fcitx
|
2012-02-24 11:06:27 +08:00
|
|
|
pkgname=('fcitx' 'fcitx-qt' 'fcitx-gtk2' 'fcitx-gtk3')
|
2012-04-07 20:39:32 +08:00
|
|
|
pkgver=4.2.2
|
2012-03-17 02:35:51 +08:00
|
|
|
pkgrel=1
|
2012-02-24 11:06:27 +08:00
|
|
|
pkgdesc="A Flexible Input Method Framework"
|
2011-09-25 02:41:58 +08:00
|
|
|
arch=("i686" "x86_64")
|
|
|
|
license=('GPL')
|
|
|
|
url="http://code.google.com/p/fcitx"
|
2012-02-24 11:06:27 +08:00
|
|
|
makedepends=('intltool' 'cmake' 'pango' 'qt' 'icu' 'dbus-core' 'wget' 'gtk2' 'gtk3')
|
2011-09-25 02:41:58 +08:00
|
|
|
conflicts=('fcitx-utf8-svn' 'fcitx-svn' 'fcitx-hg')
|
2012-03-17 02:35:51 +08:00
|
|
|
source=("http://fcitx.googlecode.com/files/${pkgname}-${pkgver}.tar.xz")
|
2012-04-07 20:39:32 +08:00
|
|
|
md5sums=('29187c7b809fb546aca08c79943737ba')
|
2011-09-25 02:41:58 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $srcdir/
|
|
|
|
|
|
|
|
msg "Creating make environment..."
|
|
|
|
|
|
|
|
mkdir -p $srcdir/build
|
|
|
|
|
|
|
|
msg "Starting make..."
|
|
|
|
cd $srcdir/build
|
|
|
|
cmake ../${pkgname}-${pkgver} -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DENABLE_QT_IM_MODULE=On \
|
2012-02-24 11:06:27 +08:00
|
|
|
-DENABLE_GTK2_IM_MODULE=On \
|
|
|
|
-DENABLE_GTK3_IM_MODULE=On \
|
2011-09-25 02:41:58 +08:00
|
|
|
-DENABLE_OPENCC=Off
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package_fcitx(){
|
|
|
|
depends=('pango' 'dbus-core')
|
|
|
|
cd $srcdir/build
|
|
|
|
make DESTDIR=$pkgdir install
|
|
|
|
rm -rf $pkgdir/usr/lib/qt/
|
|
|
|
rm -rf $pkgdir/usr/lib/gtk-2.0/
|
2012-02-24 11:06:27 +08:00
|
|
|
rm -rf $pkgdir/usr/lib/gtk-3.0/
|
2011-09-25 02:41:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package_fcitx-qt()
|
|
|
|
{
|
|
|
|
pkgdesc='QT IM Module for fcitx'
|
|
|
|
depends=('qt' 'icu' 'fcitx')
|
|
|
|
cd $srcdir/build/src/frontend/qt
|
|
|
|
make DESTDIR=$pkgdir install
|
2012-02-23 12:09:30 +08:00
|
|
|
}
|
2012-02-24 11:06:27 +08:00
|
|
|
|
|
|
|
package_fcitx-gtk2()
|
|
|
|
{
|
|
|
|
pkgdesc='GTK2 IM Module for fcitx'
|
|
|
|
depends=('gtk2' 'icu' 'fcitx')
|
2012-02-25 22:48:56 +08:00
|
|
|
install=fcitx-gtk2.install
|
2012-02-24 11:06:27 +08:00
|
|
|
cd $srcdir/build/src/frontend/gtk2
|
|
|
|
make DESTDIR=$pkgdir install
|
|
|
|
}
|
|
|
|
|
|
|
|
package_fcitx-gtk3()
|
|
|
|
{
|
|
|
|
pkgdesc='GTK3 IM Module for fcitx'
|
|
|
|
depends=('gtk3' 'fcitx')
|
2012-02-25 22:48:56 +08:00
|
|
|
install=fcitx-gtk3.install
|
2012-02-24 11:06:27 +08:00
|
|
|
cd $srcdir/build/src/frontend/gtk3
|
|
|
|
make DESTDIR=$pkgdir install
|
|
|
|
}
|