desktop/sunpinyin/PKGBUILD

38 lines
883 B
Bash
Raw Normal View History

2014-08-05 03:07:48 +08:00
# $Id$
# Maintainer: Felix Yan <felixonmars@gmail.com>
# Contributor: Thomas Dziedzic < gostrc at gmail >
pkgname=sunpinyin
2017-03-24 10:53:52 +08:00
pkgver=3.0.0rc1
_tag=v3.0.0-rc1
2014-08-05 03:07:48 +08:00
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')
2017-03-24 10:53:52 +08:00
source=("git://github.com/sunpinyin/sunpinyin.git#tag=$_tag")
2014-08-05 03:07:48 +08:00
md5sums=("SKIP")
2017-03-24 10:53:52 +08:00
prepare() {
2014-08-05 03:07:48 +08:00
cd "$srcdir/$pkgname"
sed -i -e "1s|python|python2|" python/*.py python/importer/*.py
2017-03-24 10:53:52 +08:00
}
2014-08-05 03:07:48 +08:00
2017-03-24 10:53:52 +08:00
build() {
cd "$srcdir/$pkgname"
2014-08-05 03:07:48 +08:00
scons \
--prefix=/usr
}
package() {
cd "$srcdir/$pkgname"
scons \
--prefix=/usr \
--install-sandbox="$pkgdir" \
install
}