# Contributor: Peter Bui # Maintainer: Fabian Affolter pkgname=py-feedparser _pkgname=feedparser pkgver=5.2.0 pkgrel=0 pkgdesc="A Python feed parser for RSS and Atom" url="https://github.com/kurtmckee/feedparser" arch="noarch" license="BSD" depends="python" depends_dev="" makedepends="python-dev py-setuptools" install="" subpackages="" source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.post1.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="be936ba83e20a6bec32a7dbf632ff10e feedparser-5.2.0.post1.tar.gz" sha256sums="2c27fa4f598202ed2f956782f1f0d2156faf870710ef34b6d7a3c4757ecc6a14 feedparser-5.2.0.post1.tar.gz" sha512sums="c302a2f9feeaa9ed6edbb278c4067a0139f9ef190353bc9f558f58dec8447d41cc5b1f9f55241748160c9ccc59ab60d6f3da68c38084770cd2ad442adf9f72d6 feedparser-5.2.0.post1.tar.gz"