diff options
author | root <root@rshg054.dnsready.net> | 2012-11-13 01:32:19 -0800 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-11-13 01:32:19 -0800 |
commit | a29329c38e50afd28d28c3a99e35d8774b9b19f8 (patch) | |
tree | 42f4b2e44d0f2fcce6dff4f44ba48e623437b16e /community/ibus-libpinyin/PKGBUILD | |
parent | b863c91c6c9218e2ad9458231b24385be177ed08 (diff) |
Tue Nov 13 01:32:13 PST 2012
Diffstat (limited to 'community/ibus-libpinyin/PKGBUILD')
-rw-r--r-- | community/ibus-libpinyin/PKGBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/community/ibus-libpinyin/PKGBUILD b/community/ibus-libpinyin/PKGBUILD new file mode 100644 index 000000000..151ca40c4 --- /dev/null +++ b/community/ibus-libpinyin/PKGBUILD @@ -0,0 +1,47 @@ +# $Id: PKGBUILD 79787 2012-11-12 15:24:58Z fyan $ +# Maintainer: Felix Yan <felixonmars@gmail.com> +# Contributor: Yangtse Su<yangtsesu@gmail.com> +# Contributor: Jekyll Wu<adaptee [at] gmail [dot] com> +# Contributor: riverscn<riverscn at gmail.com> +# Contributor: rainy<rainylau at gmail.com> +# Contributor: Lee.MaRS<leemars at gmail.com> + +pkgname=ibus-libpinyin +pkgver=1.4.93 +pkgrel=1 +pkgdesc="Intelligent Pinyin engine based on libpinyin for IBus" +arch=('i686' 'x86_64') +license=('LGPL') +url="https://github.com/libpinyin" +depends=('ibus>=1.4' 'libpinyin') +makedepends=('git' 'intltool' 'gnome-common') +source=(https://github.com/downloads/libpinyin/ibus-libpinyin/${pkgname}-${pkgver}.tar.gz) +md5sums=("95f6143323deddaf6d82020dcc14a1af") + +build() { + cd ${srcdir} + rm -rf "${srcdir}/${pkgname}-build" + cp -r "${srcdir}/${pkgname}-${pkgver}" "${srcdir}/${pkgname}-build" + cd "${srcdir}/${pkgname}-build" + + msg "Starting make..." + cd "${srcdir}/${pkgname}-build" + + # python2 fix + for file in $(find . -name '*.py' -print); do + sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file + sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file + done + + for file in setup/ibus-setup-libpinyin.in; do + sed -i 's_exec python_exec python2_' $file + done + + ./autogen.sh --prefix=/usr --libexecdir=/usr/lib/$pkgname + make +} + +package() { + cd "${srcdir}/${pkgname}-build" + make NO_INDEX=true DESTDIR=${pkgdir} install +} |