blob: 1aa1a46063aac75b8e8baeb8fbdc7e9327dfc723 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# $Id: PKGBUILD 92609 2013-06-10 02:29:07Z fyan $
# Maintainer: Felix Yan <felixonmars@gmail.com>
# Contributor: Thomas Dziedzic < gostrc at gmail >
pkgname=sunpinyin
pkgver=2.0.3.20130307
_commit=64e26d9ed1f617e59ff37c2efc0be97727c799a1
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc="Statistical Language Model based pinyin IME by Sun"
license=('LGPL')
url="http://sunpinyin.googlecode.com"
depends=('sqlite' 'make' 'gcc-libs')
optdepends=('sunpinyin-data: Statistical language model data from open-gram project for sunpinyin')
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
}
|