PKGBUILDs/aur/python2-certifi/PKGBUILD

34 lines
948 B
Bash
Raw Normal View History

2013-04-05 00:44:22 +00:00
# $Id: PKGBUILD 81227 2012-12-13 19:50:09Z mtorromeo $
# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
# Contributor: William J Bowman <bluephoenix47@gmail.com>
pkgname=python2-certifi
_libname=${pkgname/python2-/}
2014-04-15 13:03:27 +00:00
pkgver=1.0.1
2014-02-25 15:28:45 +00:00
pkgrel=1
2013-04-05 00:44:22 +00:00
pkgdesc="Mozilla's SSL Certs"
arch=(any)
2014-02-25 15:28:45 +00:00
url="http://pypi.python.org/pypi/certifi"
2013-04-05 00:44:22 +00:00
license=('GPL')
depends=('python2')
2014-02-25 15:28:45 +00:00
makedepends=('python2-setuptools')
2013-04-05 00:44:22 +00:00
source=(http://pypi.python.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz)
2014-02-25 15:28:45 +00:00
prepare() {
2013-04-05 00:44:22 +00:00
cd "$srcdir/$_libname-$pkgver"
sed -i '1 s|python$|python2|' certifi/core.py
}
2014-02-25 15:28:45 +00:00
build() {
cd "$srcdir/$_libname-$pkgver"
python2 setup.py build
}
2013-04-05 00:44:22 +00:00
package() {
cd "$srcdir/$_libname-$pkgver"
2014-02-25 15:28:45 +00:00
python2 setup.py install --skip-build -O1 --root="$pkgdir"
2013-04-05 00:44:22 +00:00
install -m0644 -D "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
2014-04-15 13:03:27 +00:00
sha256sums=('f2c18c7edd349ec10378ef43ff16f81ae1d0af61d5d2858a8b383e8f6814a9cc')