updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / ibus-all-git / PKGBUILD
bloba258f59a8bd6a706d6d1854eca11f3d9645074f0
1 # Contributor: hubertstar<hubert at gmail.com>
2 pkgname=ibus-all-git
3 pkgver=20090220
4 pkgrel=1
5 pkgdesc="Next Generation Input Bus for Linux, include all modules."
6 arch=('i686' 'x86_64')
7 license=('LGPL')
8 url="http://ibus.googlecode.com"
9 depends=('dbus-python>=0.83.0' 'python>=2.5.0' 'pyxdg' 'iso-codes' 'librsvg' 'python-pysqlite' 'pyenchant' 'aspell-en' 'anthy' 'libhangul' 'libchewing' 'm17n-db' 'm17n-lib')
10 makedepends=('git' 'cvs' 'qt>=4.4.0')
11 conflicts=('ibus' 'ibus-pinyin' 'ibus-table' 'ibus-engine' 'ibus-git' 'ibus-pinyin-git' 'ibus-table-git' 'ibus-engine-git')
12 provides=('ibus' 'ibus-pinyin' 'ibus-table' 'ibus-engine' 'ibus-git' 'ibus-pinyin-git' 'ibus-table-git' 'ibus-engine-git')
13 install=ibus-all.install
14 source=()
15 md5sums=()
17 _git_ibus_name="ibus"
18 _git_ibus_root="git://github.com/phuang/ibus.git"
20 _git_pinyin_name="ibus-pinyin"
21 _git_pinyin_root="git://github.com/phuang/ibus-pinyin.git"
23 _git_table_name="ibus-table"
24 _git_table_root="git://github.com/acevery/ibus-table.git"
27 _git_m17n_name="ibus-m17n"
28 _git_m17n_root="git://github.com/phuang/ibus-m17n.git"
30 _git_anthy_name="ibus-anthy"
31 _git_anthy_root="git://github.com/phuang/ibus-anthy.git ibus-anthy"
33 _git_hangul_name="ibus-hangul"
34 _git_hangul_root="git://github.com/phuang/ibus-hangul.git"
36 _git_chewing_name="ibus-chewing"
37 _git_chewing_root="git://github.com/phuang/ibus-chewing.git"
39 build() {
40     cd ${srcdir}
41   
42     msg "Connecting to ${_git_ibus_name} GIT server..."
43     if [ -d ${srcdir}/${_git_ibus_name} ]; then
44         cd ${_git_ibus_name} && git pull origin
45         msg "The local files are updated."
46     else
47         git clone ${_git_ibus_root}
48     fi
50     msg "GIT checkout done or server timeout. Preparing sources..."
52     rm -rf ${srcdir}/${_git_ibus_name}-build
53     cp -r ${srcdir}/${_git_ibus_name} ${srcdir}/${_git_ibus_name}-build
54     
55     cd ${srcdir}
56     
57     msg "Connecting to ${_git_pinyin_name} GIT server..."
58     if [ -d ${srcdir}/${_git_pinyin_name} ]; then
59         cd ${_git_pinyin_name} && git pull origin
60         msg "The local files are updated."
61     else
62         git clone ${_git_pinyin_root}
63     fi
65     msg "GIT checkout done or server timeout. Preparing sources..."
67     rm -rf ${srcdir}/${_git_pinyin_name}-build
68     cp -r ${srcdir}/${_git_pinyin_name} ${srcdir}/${_git_pinyin_name}-build
69     
70     cd ${srcdir}
71     
72     msg "Connecting to ${_git_table_name} GIT server..."
73     if [ -d ${srcdir}/${_git_table_name} ]; then
74         cd ${_git_table_name} && git pull origin
75         msg "The local files are updated."
76     else
77         git clone ${_git_table_root}
78     fi
80     msg "GIT checkout done or server timeout. Preparing sources..."
82     rm -rf ${srcdir}/${_git_table_name}-build
83     cp -r ${srcdir}/${_git_table_name} ${srcdir}/${_git_table_name}-build
84     
85     cd ${srcdir}
86     
87     msg "Connecting to ${_git_m17n_name} GIT server..."
88     if [ -d ${srcdir}/${_git_m17n_name} ]; then
89         cd ${_git_m17n_name} && git pull origin
90         msg "The local files are updated."
91     else
92         git clone ${_git_m17n_root}
93     fi
95     msg "GIT checkout done or server timeout. Preparing sources..."
97     rm -rf ${srcdir}/${_git_m17n_name}-build
98     cp -r ${srcdir}/${_git_m17n_name} ${srcdir}/${_git_m17n_name}-build
99     
100     cd ${srcdir}
101     
102     msg "Connecting to ${_git_anthy_name} GIT server..."
103     if [ -d ${srcdir}/${_git_anthy_name} ]; then
104         cd ${_git_anthy_name} && git pull origin
105         msg "The local files are updated."
106     else
107         git clone ${_git_anthy_root}
108     fi
110     msg "GIT checkout done or server timeout. Preparing sources..."
112     rm -rf ${srcdir}/${_git_anthy_name}-build
113     cp -r ${srcdir}/${_git_anthy_name} ${srcdir}/${_git_anthy_name}-build
114     
115     cd ${srcdir}
116     
117     msg "Connecting to ${_git_hangul_name} GIT server..."
118     if [ -d ${srcdir}/${_git_hangul_name} ]; then
119         cd ${_git_hangul_name} && git pull origin
120         msg "The local files are updated."
121     else
122         git clone ${_git_hangul_root}
123     fi
125     msg "GIT checkout done or server timeout. Preparing sources..."
127     rm -rf ${srcdir}/${_git_hangul_name}-build
128     cp -r ${srcdir}/${_git_hangul_name} ${srcdir}/${_git_hangul_name}-build
129     
130     cd ${srcdir}
131         
132     msg "Connecting to ${_git_chewing_name} GIT server..."
133     if [ -d ${srcdir}/${_git_chewing_name} ]; then
134         cd ${_git_chewing_name} && git pull origin
135         msg "The local files are updated."
136     else
137         git clone ${_git_chewing_root}
138     fi
140     msg "GIT checkout done or server timeout. Preparing sources..."
142     rm -rf ${srcdir}/${_git_chewing_name}-build
143     cp -r ${srcdir}/${_git_chewing_name} ${srcdir}/${_git_chewing_name}-build
144     
145     cd ${srcdir}
146     
147     msg "Starting make..."
148     
149     cd ${srcdir}/${_git_ibus_name}-build
150     ./autogen.sh --prefix=/usr \
151                  --enable-pygconf
152     
153     make || return 1
154     make DESTDIR=${pkgdir} install || return 1
155     
156     cd ${srcdir}/${_git_ibus_name}-build
157     
158     ####第一次构建的时候,必须先注释掉这些
159     cd ${srcdir}/${_git_pinyin_name}-build
160     
161     ./autogen.sh --prefix=/usr
162     make || return 1
163     make NO_INDEX=true DESTDIR=${pkgdir} install || return 1
164     
165     cd ${srcdir}/${_git_table_name}-build
166     
167     ./autogen.sh --prefix=/usr \
168                --enable-zhengma \
169            --enable-wubi86 \
170            --enable-wubi98 \
171            --enable-cangjie5 \
172            --enable-erbi-qs \
173            --enable-additional
174     make || return 1
175     make DESTDIR="$pkgdir/" install
176     
177     cd ${srcdir}/${_git_table_extraphrase_name}-build
178     ./autogen.sh --break-configure
179     ./configure --prefix=/usr --libexecdir=/usr/lib/ibus
180     make || return 1
181     make DESTDIR="$pkgdir/" install
183     
184     cd ${srcdir}/${_git_m17n_name}-build
185     
186     ./autogen.sh --prefix=/usr
187     make || return 1
188     make DESTDIR="$pkgdir/" install
189     
190     cd ${srcdir}/${_git_anthy_name}-build
191     
192     ./autogen.sh --prefix=/usr
193     make || return 1
194     make DESTDIR="$pkgdir/" install
195     
196     cd ${srcdir}/${_git_hangul_name}-build
197     
198     ./autogen.sh --prefix=/usr
199     make || return 1
200     make DESTDIR="$pkgdir/" install
201     
202     cd ${srcdir}/${_git_chewing_name}-build
203     
204     ./autogen.sh --prefix=/usr
205     make || return 1
206     make DESTDIR="$pkgdir/" install  
207       
208     ###############################
209     
210     rm -rf ${srcdir}/ibus-*-build