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
|
|
|
|
|
2012-09-15 11:03:40 +08:00
|
|
|
pkgname=fcitx
|
2013-01-30 08:18:25 +08:00
|
|
|
pkgver=4.2.7
|
2013-04-21 23:49:54 +08:00
|
|
|
pkgrel=4
|
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-09-15 11:03:40 +08:00
|
|
|
depends=('pango' 'dbus-core' 'opencc' 'lua' 'iso-codes' 'icu' 'libxkbfile')
|
2013-01-31 06:27:06 +08:00
|
|
|
replaces=('fcitx-qt' 'fcitx-keyboard')
|
|
|
|
conflicts=('fcitx-utf8-svn' 'fcitx-svn' 'fcitx-hg' 'fcitx-keyboard' 'fcitx-qt')
|
|
|
|
makedepends=('cmake' 'qt' 'icu' 'wget' 'opencc' 'lua' 'iso-codes' 'enchant')
|
2013-04-08 10:22:47 +08:00
|
|
|
source=("http://fcitx.googlecode.com/files/${pkgname}-${pkgver}.tar.xz"
|
|
|
|
"https://github.com/fcitx/fcitx/commit/9937b68bad3a7e9465e17b711ce9c0a072d3071f.patch")
|
2012-08-31 22:50:04 +08:00
|
|
|
categories=('localization')
|
2012-09-15 11:03:40 +08:00
|
|
|
install=fcitx.install
|
2011-09-25 02:41:58 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
msg "Creating make environment..."
|
|
|
|
|
2013-04-08 10:22:47 +08:00
|
|
|
pushd .
|
|
|
|
cd "${pkgname}-${pkgver}"
|
|
|
|
patch -Np1 -i "$srcdir/9937b68bad3a7e9465e17b711ce9c0a072d3071f.patch"
|
|
|
|
popd
|
|
|
|
|
|
|
|
mkdir -p build
|
2011-09-25 02:41:58 +08:00
|
|
|
|
|
|
|
msg "Starting make..."
|
2013-04-08 10:22:47 +08:00
|
|
|
cd build
|
2011-09-25 02:41:58 +08:00
|
|
|
cmake ../${pkgname}-${pkgver} -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DENABLE_QT_IM_MODULE=On \
|
2013-01-31 06:27:06 +08:00
|
|
|
-DENABLE_GTK2_IM_MODULE=Off \
|
|
|
|
-DENABLE_GTK3_IM_MODULE=Off \
|
2012-05-10 18:24:22 +08:00
|
|
|
-DENABLE_OPENCC=On \
|
2012-06-03 21:52:31 +08:00
|
|
|
-DENABLE_LUA=On \
|
|
|
|
-DENABLE_GIR=Off
|
2011-09-25 02:41:58 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
2012-09-15 11:03:40 +08:00
|
|
|
package(){
|
2013-04-08 10:22:47 +08:00
|
|
|
cd build
|
2011-09-25 02:41:58 +08:00
|
|
|
make DESTDIR=$pkgdir install
|
2012-02-24 11:06:27 +08:00
|
|
|
}
|
2013-04-08 10:22:47 +08:00
|
|
|
md5sums=('fb96dec8b023b59913082eac40f8ff1c'
|
2013-04-21 23:49:54 +08:00
|
|
|
'246e36c2232f107ed1692a52ebc43c39')
|