updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / fcitx-hg / PKGBUILD
blob43612a9f428865c2c544d97ea8573ab1908a56bc
1 # Maintainer: lh <jarryson AT gmail com>
3 pkgname=fcitx-hg
4 pkgver=862
5 pkgrel=1
6 pkgdesc="Free Chinese Input Toy of X - Input Method Server for X window system (XIM)"
7 arch=("i686" "x86_64")
8 license=('GPL')
9 url="http://code.google.com/p/fcitx"
10 depends=('pango' 'gtk2' 'qt' 'gtk3')
11 makedepends=('mercurial' 'python2' 'intltool' 'cmake')
12 conflicts=('fcitx' 'fcitx-utf8-svn' 'fcitx-svn')
13 replaces=('fcitx')
14 provides=("fcitx=4.1.2")
15 install=("$pkgname.install")
17 _hgrepo="fcitx"
18 _hgroot="http://fcitx.googlecode.com/hg"
20 build() {
21   cd "$srcdir/$_hgrepo"
22   hg revert --all --no-backup
23   
24   cd $srcdir/
26   msg "Creating make environment..."
27   
28   rm -rf $srcdir/$_hgrepo-build
29   mkdir -p $srcdir/$_hgrepo-build
31   msg "Starting make..."
32   cd $srcdir/$_hgrepo-build
33   cmake ../$_hgrepo -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release \
34       -DENABLE_QT_IM_MODULE=On \
35       -DENABLE_GTK2_IM_MODULE=On \
36       -DENABLE_GTK3_IM_MODULE=On
38   make
40 package(){
41   cd $srcdir/$_hgrepo-build
42   make DESTDIR=$pkgdir install