# Maintainer: Peter Bui pkgname=py-icu _pkgname=PyICU pkgver=1.9.2 pkgrel=2 pkgdesc="Python binding for ICU" url="http://pyicu.osafoundation.org/" arch="all" license="MIT" depends="python" depends_dev="" makedepends="python-dev icu-dev" install="" subpackages="" source="http://pypi.python.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-$pkgver.tar.gz" _builddir="$srcdir"/$_pkgname-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" python setup.py build || return 1 } package() { cd "$_builddir" python setup.py install --prefix=/usr --root="$pkgdir" || return 1 } md5sums="a104ea78918a8b1f4ecbbb1063edb46b PyICU-1.9.2.tar.gz" sha256sums="9b580801eb17b09a5e0e8ef7d3b29170361ed505c5f954b723c1b48a1e502bb6 PyICU-1.9.2.tar.gz" sha512sums="1964464f5385dc8f65c4b88b63cd9f34ced1ae365562386708d92fc5c40090a40554578bd5e90d0a996ca6f012b3d2a8ab6e0fd07968e94a0dfe18894e8f08f4 PyICU-1.9.2.tar.gz"