[arch-commits] Commit in ibus-libpinyin/repos (4 files)
Felix Yan
fyan at archlinux.org
Sat Feb 7 16:23:00 UTC 2015
Date: Saturday, February 7, 2015 @ 17:22:59
Author: fyan
Revision: 127253
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
ibus-libpinyin/repos/community-staging-i686/
ibus-libpinyin/repos/community-staging-i686/PKGBUILD
(from rev 127252, ibus-libpinyin/trunk/PKGBUILD)
ibus-libpinyin/repos/community-staging-x86_64/
ibus-libpinyin/repos/community-staging-x86_64/PKGBUILD
(from rev 127252, ibus-libpinyin/trunk/PKGBUILD)
-----------------------------------+
community-staging-i686/PKGBUILD | 41 ++++++++++++++++++++++++++++++++++++
community-staging-x86_64/PKGBUILD | 41 ++++++++++++++++++++++++++++++++++++
2 files changed, 82 insertions(+)
Copied: ibus-libpinyin/repos/community-staging-i686/PKGBUILD (from rev 127252, ibus-libpinyin/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2015-02-07 16:22:59 UTC (rev 127253)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Contributor: Yangtse Su<yangtsesu at 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.6.99.20150203
+pkgrel=1
+pkgdesc="Intelligent Pinyin engine based on libpinyin for IBus"
+arch=('i686' 'x86_64')
+license=('LGPL')
+url="https://github.com/libpinyin/ibus-libpinyin"
+depends=('ibus' 'libpinyin' 'python2-xdg')
+makedepends=('git' 'intltool' 'gnome-common')
+source=("https://github.com/libpinyin/ibus-libpinyin/archive/$pkgver.tar.gz")
+sha512sums=('9ede5d09d32f6f0177ea0a029f8d3b53359cca7166db5c40775bf11842b13c5b5e6eeeb7d74f238280f6c97b1c7b2db7438ecf73d296182528b493b37649033d')
+
+build() {
+ cd $pkgname-$pkgver
+
+ # 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
+
+ PYTHON=python2 ./autogen.sh --prefix=/usr --libexecdir=/usr/lib/$pkgname
+ make
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make NO_INDEX=true DESTDIR="$pkgdir" install
+}
Copied: ibus-libpinyin/repos/community-staging-x86_64/PKGBUILD (from rev 127252, ibus-libpinyin/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2015-02-07 16:22:59 UTC (rev 127253)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Contributor: Yangtse Su<yangtsesu at 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.6.99.20150203
+pkgrel=1
+pkgdesc="Intelligent Pinyin engine based on libpinyin for IBus"
+arch=('i686' 'x86_64')
+license=('LGPL')
+url="https://github.com/libpinyin/ibus-libpinyin"
+depends=('ibus' 'libpinyin' 'python2-xdg')
+makedepends=('git' 'intltool' 'gnome-common')
+source=("https://github.com/libpinyin/ibus-libpinyin/archive/$pkgver.tar.gz")
+sha512sums=('9ede5d09d32f6f0177ea0a029f8d3b53359cca7166db5c40775bf11842b13c5b5e6eeeb7d74f238280f6c97b1c7b2db7438ecf73d296182528b493b37649033d')
+
+build() {
+ cd $pkgname-$pkgver
+
+ # 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
+
+ PYTHON=python2 ./autogen.sh --prefix=/usr --libexecdir=/usr/lib/$pkgname
+ make
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make NO_INDEX=true DESTDIR="$pkgdir" install
+}
More information about the arch-commits
mailing list