desktop/fcitx/PKGBUILD
2013-01-30 22:27:06 +00:00

49 lines
1.3 KiB
Bash

#
# 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
pkgname=fcitx
pkgver=4.2.7
pkgrel=2
pkgdesc="A Flexible Input Method Framework"
arch=("i686" "x86_64")
license=('GPL')
url="http://code.google.com/p/fcitx"
depends=('pango' 'dbus-core' 'opencc' 'lua' 'iso-codes' 'icu' 'libxkbfile')
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')
source=("http://fcitx.googlecode.com/files/${pkgname}-${pkgver}.tar.xz")
categories=('localization')
install=fcitx.install
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 \
-DENABLE_GTK2_IM_MODULE=Off \
-DENABLE_GTK3_IM_MODULE=Off \
-DENABLE_OPENCC=On \
-DENABLE_LUA=On \
-DENABLE_GIR=Off
make
}
package(){
cd $srcdir/build
make DESTDIR=$pkgdir install
}
md5sums=('fb96dec8b023b59913082eac40f8ff1c')