summaryrefslogtreecommitdiff
path: root/community/pyzy/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/pyzy/PKGBUILD')
-rw-r--r--community/pyzy/PKGBUILD30
1 files changed, 7 insertions, 23 deletions
diff --git a/community/pyzy/PKGBUILD b/community/pyzy/PKGBUILD
index 164366810..7fe042b34 100644
--- a/community/pyzy/PKGBUILD
+++ b/community/pyzy/PKGBUILD
@@ -1,48 +1,32 @@
+# $Id: PKGBUILD 113874 2014-07-01 07:48:10Z fyan $
# Maintainer: Felix Yan <felixonmars@gmail.com>
# Contributor: Kerrick Staley <mail@kerrickstaley.com>
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'
license=('LGPL')
depends=('glib2' 'sqlite' 'util-linux')
makedepends=('git' 'doxygen' 'gnome-common' 'python2')
-
-__gitroot=git://github.com/pyzy/pyzy.git
-__gitname=$pkgname
+source=("git://github.com/pyzy/pyzy.git#commit=$_commit")
+md5sums=('SKIP')
build() {
- cd "$srcdir"
- msg "Connecting to GIT server...."
-
- 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"
+ cd $pkgname
# 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
}