Date: Wednesday, November 12, 2014 @ 03:56:13 Author: fyan Revision: 122409
upgpkg: ibus-googlepinyin 0.1.2-6 opencc 1.0.1 rebuild Modified: ibus-googlepinyin/trunk/PKGBUILD ----------+ PKGBUILD | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2014-11-12 02:37:19 UTC (rev 122408) +++ PKGBUILD 2014-11-12 02:56:13 UTC (rev 122409) @@ -1,11 +1,11 @@ # $Id$ -# Maintainer: Felix Yan <[email protected]> +# Maintainer: Felix Yan <[email protected]> # Author: Jiahua Huang <[email protected]> # Contributor: Yangtse <[email protected]> pkgname=ibus-googlepinyin pkgver=0.1.2 -pkgrel=5 +pkgrel=6 pkgdesc="IBus Wrapper for libgooglepinyin" arch=('any') url="http://code.google.com/p/libgooglepinyin" @@ -16,12 +16,16 @@ source=("http://libgooglepinyin.googlecode.com/files/${pkgname}-${pkgver}.tar.bz2") md5sums=('f9af459849c29934e8d59fc7f23a9318') -build() { +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 - - find ../$pkgname -type f -name '*.py' | xargs sed -i 's|/usr/bin/python|/usr/bin/python2|g' cmake -DCMAKE_INSTALL_PREFIX=/usr ../$pkgname } @@ -29,4 +33,3 @@ cd build make DESTDIR="$pkgdir" install } -
