|
发表于 2010-10-12 19:09:17
|
显示全部楼层
Post by xybds;2115101
更新了以后好像还有个小问题, 我这里 ibus-pinyin 或者是 sunpinyin, 点
preference 都没用 。
ibus 自己的 preference 可以 设置 [php]pkgname=ibus-pinyin
pkgver=1.3.11
pkgrel=1
pkgdesc='The PinYin Engine for IBus Input Framework.'
arch=('i686' 'x86_64')
license=('LGPL')
url='http://ibus.googlecode.com'
depends=('ibus' 'libsigc++2.0' 'boost-libs')
makedepends=('intltool' 'boost')
install="${pkgname}.install"
source=("http://ibus.googlecode.com/files/${pkgname}-${pkgver}.tar.gz"
"http://ibus.googlecode.com/files/pinyin-database-1.2.99.tar.bz2")
md5sums=('c49b2ccaae1f4e3c5cfbd25af6bea51a'
'd0951b8daa7f56a2cbd3b6b4e42532e0')
build() {
ln -sf ${srcdir}/pinyin-database-1.2.99.tar.bz2 \
${srcdir}/${pkgname}-${pkgver}/data/db/open-phrase
cd ${pkgname}-${pkgver}
./configure \
--prefix=/usr \
--libexecdir=/usr/lib/ibus \
--enable-db-open-phrase \
--disable-db-android
# python2 fix
sed -i 's/python/python2/g' ./setup/ibus-setup-pinyin.in
make
}
package() {
cd ${pkgname}-${pkgver}
make NO_INDEX=true DESTDIR=${pkgdir} install
}
[/php]
[php]post_install() {
echo "Creating INDEX. Please wait..."
cd /usr/share/ibus-pinyin/db
#echo "Creating index for android.db..."
#sqlite3 android.db '.read create_index.sql'
echo "Creating index for open-phrase.db..."
sqlite3 open-phrase.db '.read create_index.sql'
echo "Done."
}
post_upgrade() {
post_install $1
}
[/php] |
|