mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-25 02:52:13 +08:00
61 lines
1.7 KiB
Bash
61 lines
1.7 KiB
Bash
#
|
|
# Apps Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# Maintainer: Neo Kolokotronis <tetris4@gmail.com>
|
|
# Contributor: csslayer <wengxt AT gmail com>
|
|
# Contributor: Jekyll Wu<adaptee [at] gmail [dot com>
|
|
# Contributor: Liu Chang <goduck777@gmail.com>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=sunpinyin-git
|
|
pkgver=20120603
|
|
pkgrel=1
|
|
pkgdesc='A statistical language model based pinyin IME by Sun.'
|
|
url='http://code.google.com/p/sunpinyin/'
|
|
arch=('i686' 'x86_64')
|
|
license=('LGPL')
|
|
depends=('sqlite3')
|
|
makedepends=('git' 'scons' 'intltool' 'python2')
|
|
provides=('sunpinyin')
|
|
conflicts=('sunpinyin')
|
|
source=('http://open-gram.googlecode.com/files/lm_sc.t3g.arpa.tar.bz2'
|
|
'http://open-gram.googlecode.com/files/dict.utf8.tar.bz2')
|
|
noextract=('lm_sc.t3g.arpa.tar.bz2'
|
|
'dict.utf8.tar.bz2')
|
|
|
|
_gitroot="git://github.com/sunpinyin/sunpinyin.git"
|
|
_gitname="sunpinyin"
|
|
|
|
build() {
|
|
cd $srcdir
|
|
msg "Connecting to the GIT server...."
|
|
|
|
if [[ -d $srcdir/$_gitname ]] ; then
|
|
cd $_gitname
|
|
git pull origin
|
|
msg "The local files are updated."
|
|
else
|
|
git clone $_gitroot
|
|
fi
|
|
|
|
msg "GIT checkout done"
|
|
msg "Starting make..."
|
|
|
|
rm -rf $srcdir/$_gitname-build
|
|
git clone $srcdir/$_gitname $srcdir/$_gitname-build
|
|
cd $srcdir/$_gitname-build
|
|
|
|
ln -sf ${srcdir}/lm_sc.t3g.arpa.tar.bz2 raw/lm_sc.t3g.arpa.tar.bz2
|
|
ln -sf ${srcdir}/dict.utf8.tar.bz2 raw/dict.utf8.tar.bz2
|
|
|
|
sed -i -e "s|python|python2|" python/*.py python/importer/*.py SConstruct
|
|
|
|
scons --prefix=/usr
|
|
scons install --prefix=/usr --install-sandbox=$pkgdir || return 1
|
|
|
|
}
|
|
md5sums=('31dd2667d9a5cae9d2ecdacf2201ab13'
|
|
'98b1dc61d3ef3fd4be3c0a9fac410da2')
|