# Maintainer: Peter Bui pkgname=py-certifi _pkgname=certifi pkgver=2015.04.28 pkgrel=0 pkgdesc="Python package for providing Mozilla's CA Bundle" url="https://pypi.python.org/pypi/certifi" arch="noarch" license="ISC" depends="python" depends_dev="py-setuptools" makedepends="$depends_dev" install="" subpackages="" source="https://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" --optimize=1 || return 1 } md5sums="12c7c3a063b2ff97a0f8291d8de41e8c certifi-2015.04.28.tar.gz" sha256sums="99785e6cf715cdcde59dee05a676e99f04835a71e7ced201ca317401c322ba96 certifi-2015.04.28.tar.gz" sha512sums="c63287d9e0814226a1eb6ea0f6d1a53f0fd88995c0c2541e404efd0c70471fae01cb56ecca5425c6754342c28c96948ba912bd860bf2d336bba95a0b751f8f99 certifi-2015.04.28.tar.gz"