[arch-commits] Commit in pyzy/trunk (PKGBUILD)

Felix Yan fyan at nymeria.archlinux.org
Tue Jul 1 07:46:36 UTC 2014


    Date: Tuesday, July 1, 2014 @ 09:46:35
  Author: fyan
Revision: 113873

upgpkg: pyzy 1.0-2

mtree rebuild

Modified:
  pyzy/trunk/PKGBUILD

----------+
 PKGBUILD |   30 +++++++-----------------------
 1 file changed, 7 insertions(+), 23 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-07-01 07:43:53 UTC (rev 113872)
+++ PKGBUILD	2014-07-01 07:46:35 UTC (rev 113873)
@@ -1,3 +1,4 @@
+# $Id$
 # Maintainer: Felix Yan <felixonmars at gmail.com>
 # Contributor: Kerrick Staley <mail at kerrickstaley.com>
 
@@ -4,7 +5,7 @@
 pkgname=pyzy
 pkgver=1.0
 _commit="d7747466562cb8b4bc2934708e29b7643c7bedbc"
-pkgrel=1
+pkgrel=2
 pkgdesc='The Chinese PinYin and Bopomofo conversion library'
 arch=('i686' 'x86_64')
 url='https://github.com/pyzy/pyzy'
@@ -11,38 +12,21 @@
 license=('LGPL')
 depends=('glib2' 'sqlite' 'util-linux')
 makedepends=('git' 'doxygen' 'gnome-common' 'python2')
+source=("git://github.com/pyzy/pyzy.git#commit=$_commit")
+md5sums=('SKIP')
 
-__gitroot=git://github.com/pyzy/pyzy.git
-__gitname=$pkgname
-
 build() {
-  cd "$srcdir"
-  msg "Connecting to GIT server...."
+  cd $pkgname
 
-  if [ -d $__gitname ] ; then
-    cd $__gitname && git pull origin
-    msg "The local files are updated."
-  else
-    git clone $__gitroot
-  fi
-
-  msg "GIT checkout done or server timeout"
-  msg "Starting make..."
-
-  rm -rf "$srcdir/$__gitname-build"
-  git clone "$srcdir/$__gitname" "$srcdir/$__gitname-build"
-  cd "$srcdir/$__gitname-build"
-  git checkout "$_commit"	   
-
   # replace python with python2; see https://github.com/hsumita/libpyzy/issues/1
   find . -name '*.py' -exec sed -ri '1s#(bin/|env )python#\1python2#' '{}' \;
-  
+
   ./autogen.sh --prefix=/usr
   make
 }
 
 package() {
-  cd "$srcdir/$__gitname-build"
+  cd "$srcdir/$pkgname"
 
   make DESTDIR="$pkgdir" install
 }




More information about the arch-commits mailing list