summaryrefslogtreecommitdiff
path: root/community/ibus-sunpinyin
diff options
context:
space:
mode:
Diffstat (limited to 'community/ibus-sunpinyin')
-rw-r--r--community/ibus-sunpinyin/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/community/ibus-sunpinyin/PKGBUILD b/community/ibus-sunpinyin/PKGBUILD
new file mode 100644
index 000000000..c41529cec
--- /dev/null
+++ b/community/ibus-sunpinyin/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 92623 2013-06-10 07:28:20Z fyan $
+# Maintainer: Felix Yan <felixonmars@gmail.com>
+# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
+
+pkgname=ibus-sunpinyin
+_pkgname=sunpinyin
+pkgver=2.0.3.20130307
+_commit=64e26d9ed1f617e59ff37c2efc0be97727c799a1
+pkgrel=1
+pkgdesc="IBus Wrapper for sunpinyin"
+arch=('i686' 'x86_64')
+url="http://sunpinyin.googlecode.com"
+license=('LGPL')
+depends=('sunpinyin>2.0.3' 'sunpinyin-data' 'ibus')
+makedepends=('git' 'scons')
+source=("git://github.com/sunpinyin/sunpinyin.git#commit=$_commit")
+md5sums=("SKIP")
+
+build() {
+ cd "$srcdir/$_pkgname/wrapper/ibus"
+ sed -i -e "s|python|python2|" setup/ibus-setup-sunpinyin.in
+
+ scons \
+ --prefix=/usr
+}
+
+package() {
+ cd "$srcdir/$_pkgname/wrapper/ibus"
+
+ scons \
+ --prefix=/usr \
+ --install-sandbox="$pkgdir" \
+ install
+}