[arch-commits] Commit in ibus-googlepinyin/repos (2 files)

Felix Yan fyan at archlinux.org
Wed Nov 12 02:56:31 UTC 2014


    Date: Wednesday, November 12, 2014 @ 03:56:31
  Author: fyan
Revision: 122410

archrelease: copy trunk to community-staging-any

Added:
  ibus-googlepinyin/repos/community-staging-any/
  ibus-googlepinyin/repos/community-staging-any/PKGBUILD
    (from rev 122409, ibus-googlepinyin/trunk/PKGBUILD)

----------+
 PKGBUILD |   35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

Copied: ibus-googlepinyin/repos/community-staging-any/PKGBUILD (from rev 122409, ibus-googlepinyin/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2014-11-12 02:56:31 UTC (rev 122410)
@@ -0,0 +1,35 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Author: Jiahua Huang <jhuangjiahua at gmail.com>
+# Contributor: Yangtse <yangtsesu at gmail.com>
+
+pkgname=ibus-googlepinyin
+pkgver=0.1.2
+pkgrel=6
+pkgdesc="IBus Wrapper for libgooglepinyin"
+arch=('any')
+url="http://code.google.com/p/libgooglepinyin"
+license=('APACHE')
+optdepends=('opencc: for simplified chinese translation to tranditional chinese')
+depends=('libgooglepinyin' 'ibus' 'iso-codes' 'pygtk')
+makedepends=('cmake')
+source=("http://libgooglepinyin.googlecode.com/files/${pkgname}-${pkgver}.tar.bz2")
+md5sums=('f9af459849c29934e8d59fc7f23a9318')
+
+prepare() {
+  sed -e 's/zhs2zht.ini/s2t.json/' -i $pkgname/libopencc.py
+  find $pkgname -type f -name '*.py' -exec sed -i 's|/usr/bin/python|/usr/bin/python2|g' {} \;
+
+  rm -rf build
+  mkdir -p build
+}
+
+build() {
+  cd build
+  cmake -DCMAKE_INSTALL_PREFIX=/usr ../$pkgname
+}
+
+package() {
+  cd build
+  make DESTDIR="$pkgdir" install
+}



More information about the arch-commits mailing list