desktop/sunpinyin/PKGBUILD
2014-08-04 19:07:48 +00:00

37 lines
892 B
Bash

# $Id$
# Maintainer: Felix Yan <felixonmars@gmail.com>
# Contributor: Thomas Dziedzic < gostrc at gmail >
pkgname=sunpinyin
pkgver=2.0.3.20140804
_commit=10ea46e8f7c3465d6e882c96b00618288c3f0532
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc="Statistical Language Model based pinyin IME by Sun"
license=('LGPL')
url="http://sunpinyin.googlecode.com"
depends=('sqlite3' 'make' 'gcc-libs')
optdepends=('sunpinyin-data: Statistical language model data from open-gram project for sunpinyin')
replaces=('sunpinyin-git<=20120603')
makedepends=('git' 'scons' 'intltool')
source=("git://github.com/sunpinyin/sunpinyin.git#commit=$_commit")
md5sums=("SKIP")
build() {
cd "$srcdir/$pkgname"
sed -i -e "1s|python|python2|" python/*.py python/importer/*.py
scons \
--prefix=/usr
}
package() {
cd "$srcdir/$pkgname"
scons \
--prefix=/usr \
--install-sandbox="$pkgdir" \
install
}