|
发表于 2011-1-4 01:10:22
|
显示全部楼层
- pkgname=sunpinyin-git
- pkgver=20101220
- pkgrel=1
- pkgdesc='The Sunpinyin engine. Sunpinyin is a statistical language model based pinyin IME by Sun.'
- arch=('i686' 'x86_64')
- license=('LGPL')
- depends=('sqlite3')
- makedepends=('git' 'pkgconfig' 'scons' 'intltool' 'tar')
- url='http://code.google.com/p/sunpinyin/'
- conflicts=('sunpinyin')
- provides=('sunpinyin')
- source=()
- md5sums=()
- noextract=()
- _gitroot="git://github.com/sunpinyin/sunpinyin.git"
- _gitname="sunpinyin"
- build() {
- cd $srcdir
- msg "Connecting to the GIT server...."
-
- if [[ -d $srcdir/$_gitname ]] ; then
- cd $_gitname
- git pull origin
- msg "The local files are updated."
- else
- git clone $_gitroot
- fi
-
- msg "GIT checkout done"
- msg "Starting make..."
-
- mkdir -p $srcdir/$_gitname-build
- cp -r $srcdir/$_gitname/* $srcdir/$_gitname-build/
- cd $srcdir/$_gitname-build
-
- scons --prefix=/usr
- scons install --prefix=/usr --install-sandbox=$pkgdir || return 1
-
- cd wrapper/xim
- scons --prefix=/usr
- scons install --prefix=/usr --install-sandbox=$pkgdir || return 1
- cd $OLDPWD
- }
复制代码
当然如果只要xim部分,参考修改。 |
|