# $Id: PKGBUILD 81227 2012-12-13 19:50:09Z mtorromeo $ # Maintainer: Massimiliano Torromeo # Contributor: William J Bowman pkgname=python2-certifi _libname=${pkgname/python2-/} pkgver=1.0.0 pkgrel=1 pkgdesc="Mozilla's SSL Certs" arch=(any) url="http://pypi.python.org/pypi/certifi" license=('GPL') depends=('python2') makedepends=('python2-setuptools') source=(http://pypi.python.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz) prepare() { cd "$srcdir/$_libname-$pkgver" sed -i '1 s|python$|python2|' certifi/core.py } build() { cd "$srcdir/$_libname-$pkgver" python2 setup.py build } package() { cd "$srcdir/$_libname-$pkgver" python2 setup.py install --skip-build -O1 --root="$pkgdir" install -m0644 -D "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } sha256sums=('d4f8e89c9e709f67221bf21231d0fa66a00d3712bcb69d4b5aef3705339c8dcd')