# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py-praw _pkgname=praw pkgver=2.1.20 pkgrel=0 pkgdesc="A Python module to access to reddit's API" url="https://github.com/praw-dev/praw" arch="noarch" license="GPL3+" depends="python py-update-checker py-requests py-six" depends_dev="" makedepends="python-dev py-setuptools" 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="579ddd10526695405c06598901364e3f praw-2.1.20.tar.gz" sha256sums="643d8356e10836ff34355e2c818fecb115216aaae19c30b2e6638b777ca0b09c praw-2.1.20.tar.gz" sha512sums="900695b3f3890bf2ef69d944b666ccc52b93ae27d357be2c83d2d279ec444c83a1e31067e25895c8f2a412f9c6a16648146b69dff6ad4d558c133b9519728770 praw-2.1.20.tar.gz"