[arch-commits] Commit in ibus-libpinyin/trunk (PKGBUILD automake-1.13.patch)

Felix Yan fyan at nymeria.archlinux.org
Wed Mar 20 09:14:11 UTC 2013


    Date: Wednesday, March 20, 2013 @ 10:14:10
  Author: fyan
Revision: 86577

upgpkg: ibus-libpinyin 1.5.92-1

Added:
  ibus-libpinyin/trunk/automake-1.13.patch
Modified:
  ibus-libpinyin/trunk/PKGBUILD

---------------------+
 PKGBUILD            |   26 ++++++++++++++++----------
 automake-1.13.patch |   10 ++++++++++
 2 files changed, 26 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-03-20 02:34:21 UTC (rev 86576)
+++ PKGBUILD	2013-03-20 09:14:10 UTC (rev 86577)
@@ -7,7 +7,7 @@
 # Contributor: Lee.MaRS<leemars at gmail.com>
 
 pkgname=ibus-libpinyin
-pkgver=1.4.93
+pkgver=1.5.92
 pkgrel=1
 pkgdesc="Intelligent Pinyin engine based on libpinyin for IBus"
 arch=('i686' 'x86_64')
@@ -15,17 +15,19 @@
 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")
+source=(https://github.com/libpinyin/ibus-libpinyin/archive/$pkgver.tar.gz
+	automake-1.13.patch)
 
 build() {
-  cd ${srcdir}
-  rm -rf "${srcdir}/${pkgname}-build"
-  cp -r "${srcdir}/${pkgname}-${pkgver}" "${srcdir}/${pkgname}-build"
-  cd "${srcdir}/${pkgname}-build"
+  cd "$srcdir"
+  rm -rf "$srcdir/$pkgname-build"
+  cp -r "$srcdir/$pkgname-$pkgver" "$srcdir/$pkgname-build"
+  cd "$srcdir/$pkgname-build"
 
+  patch -Np1 -i "$srcdir/automake-1.13.patch"
+
   msg "Starting make..."
-  cd "${srcdir}/${pkgname}-build"
+  cd "$srcdir/$pkgname-build"
 
   # python2 fix
   for file in $(find . -name '*.py' -print); do
@@ -37,11 +39,15 @@
     sed -i 's_exec python_exec python2_' $file
   done
 
+  export REQUIRED_AUTOMAKE_VERSION=1.13 automake_progs=automake-1.13
+
   ./autogen.sh --prefix=/usr --libexecdir=/usr/lib/$pkgname
   make
 }
 
 package() {
-  cd "${srcdir}/${pkgname}-build"
-  make NO_INDEX=true DESTDIR=${pkgdir} install
+  cd "$srcdir/$pkgname-build"
+  make NO_INDEX=true DESTDIR="$pkgdir" install
 }
+md5sums=('2a355713221df7e47354f81cb14e183f'
+         '2a743114537a03830d5b4cd71226cfd0')

Added: automake-1.13.patch
===================================================================
--- automake-1.13.patch	                        (rev 0)
+++ automake-1.13.patch	2013-03-20 09:14:10 UTC (rev 86577)
@@ -0,0 +1,10 @@
+--- a/autogen.sh	2013-03-18 22:55:12.210703327 +0800
++++ b/autogen.sh	2013-03-18 23:01:11.842675010 +0800
+@@ -19,6 +19,6 @@
+ }
+ 
+ ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I m4"
+-REQUIRED_AUTOMAKE_VERSION=1.8
++REQUIRED_AUTOMAKE_VERSION=1.13
+ 
+ . gnome-autogen.sh "$@"




More information about the arch-commits mailing list