# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py-w3lib _pkgname=w3lib pkgver=1.9.0 pkgrel=0 pkgdesc="A library of web-related functions" url="https://github.com/scrapy/w3lib" arch="noarch" license="BSD" depends="python" depends_dev="" makedepends="python-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="91411a8b0b52279fd889c7ba12f2aad5 w3lib-1.9.0.tar.gz" sha256sums="b124659467de0a161f17ade88d616c2270356c5eeea66aea20285d92efb515f3 w3lib-1.9.0.tar.gz" sha512sums="e9fd074beb80d603e98408c1488781dbafd526c6ad1b8626ef77c4efe536446086304775cfea12d75ea15e99c2350dc21a61244b846e5056f3b7fb4b449ea335 w3lib-1.9.0.tar.gz"