desktop/fcitx/PKGBUILD
2012-10-21 15:41:49 +00:00

49 lines
1.4 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.6.1
pkgrel=1
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-gtk2' 'fcitx-gtk3' 'fcitx-keyboard')
conflicts=('fcitx-utf8-svn' 'fcitx-svn' 'fcitx-hg' 'fcitx-keyboard' 'fcitx-qt' 'fcitx-gtk2' 'fcitx-gtk3')
makedepends=('libxkbfile' 'intltool' 'cmake' 'pango' 'qt' 'icu' 'dbus-core' 'wget' 'gtk2' 'gtk3' 'opencc' 'lua' 'iso-codes' 'enchant')
source=("http://fcitx.googlecode.com/files/${pkgname}-${pkgver}.tar.xz")
md5sums=('8a8fd129cdc7afc61fe6c4badec0a9db')
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=On \
-DENABLE_GTK3_IM_MODULE=On \
-DENABLE_OPENCC=On \
-DENABLE_LUA=On \
-DENABLE_GIR=Off
make
}
package(){
cd $srcdir/build
make DESTDIR=$pkgdir install
}