Don't like ads? PRO users don't see any ads ;-)
Guest

PKGBUILD

By: a guest on Mar 24th, 2010  |  syntax: Bash  |  size: 1.51 KB  |  hits: 302  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: riverscn<riverscn at gmail.com>
  2. # Contributor: rainy<rainylau at gmail.com>
  3. # Contributor: Lee.MaRS<leemars at gmail.com>
  4. pkgname=ibus-pinyin-git
  5. pkgver=20091010
  6. pkgrel=1
  7. pkgdesc="The PinYin Engine for IBus Input Framework"
  8. arch=('i686' 'x86_64')
  9. license=('LGPL')
  10. url="http://ibus.googlecode.com"
  11. depends=('ibus=1.2.0')
  12. makedepends=('git' 'cvs' 'gnome-common')
  13. provides=('ibus-pinyin=1.2.0')
  14. conflicts=('ibus-pinyin')
  15. install=ibus-pinyin.install
  16. source=(http://ibus.googlecode.com/files/pinyin-database-1.2.99.tar.bz2)
  17. noextract=(pinyin-database-1.2.99.tar.bz2)
  18. md5sums=('d0951b8daa7f56a2cbd3b6b4e42532e0')
  19.  
  20. _gitname="ibus-pinyin"
  21. _gitroot="git://github.com/phuang/ibus-pinyin.git"
  22.  
  23. build() {
  24.     cd ${srcdir}
  25.  
  26.     msg "Connecting to ${_gitname} GIT server..."
  27.     if [ -d ${_gitname} ]; then
  28.         cd ${_gitname} && git pull origin master
  29.         msg "The local files are updated."
  30.     else
  31.         git clone ${_gitroot}
  32.     fi
  33.  
  34.     msg "GIT checkout done or server timeout. Preparing sources..."
  35.     rm -rf "${srcdir}/${_gitname}-build"
  36.     cp -r "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
  37.     ln -s "${srcdir}/pinyin-database-1.2.99.tar.bz2" "${srcdir}/${_gitname}-build/data/db/open-phrase"
  38.  
  39.     msg "Starting make..."
  40.     cd "${srcdir}/${_gitname}-build"
  41.     ./autogen.sh --break-configure
  42.     ./configure --prefix=/usr --libexecdir=/usr/lib/ibus --enable-db-open-phrase || return 1
  43.     make || return 1
  44.     make NO_INDEX=true DESTDIR=${pkgdir} install || return 1
  45. }