diff options
author | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
commit | 7a65a910b77ad191d69881098c47f9b0c852d92e (patch) | |
tree | 9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/sunpinyin/PKGBUILD | |
parent | 60da6abff6c9577a783d72865f11de7a585e912e (diff) |
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/sunpinyin/PKGBUILD')
-rw-r--r-- | community/sunpinyin/PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/community/sunpinyin/PKGBUILD b/community/sunpinyin/PKGBUILD new file mode 100644 index 000000000..1aa1a4606 --- /dev/null +++ b/community/sunpinyin/PKGBUILD @@ -0,0 +1,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 +} + |