mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
50 lines
1.4 KiB
Bash
50 lines
1.4 KiB
Bash
# $Id$
|
|
# Maintainer: Felix Yan <felixonmars@gmail.com>
|
|
# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
|
|
# Contributor: William J Bowman <bluephoenix47@gmail.com>
|
|
|
|
# remove when bumped upstream
|
|
|
|
pkgbase=python-certifi
|
|
pkgname=('python-certifi' 'python2-certifi')
|
|
_libname=${pkgbase/python-/}
|
|
pkgver=14.05.14
|
|
pkgrel=1
|
|
pkgdesc="Mozilla's SSL Certs"
|
|
arch=(any)
|
|
url="http://pypi.python.org/pypi/certifi"
|
|
license=('GPL')
|
|
makedepends=('python-setuptools' 'python2-setuptools')
|
|
source=("http://pypi.python.org/packages/source/${_libname:0:1}/$_libname/$_libname-$pkgver.tar.gz")
|
|
sha512sums=('5edba0cc432c27212e31085fb3c2f2ded6fa177d716116111517c25b980d9fc206a9a6d47e2c001762e951ff50203b269d0eb245a039df20188b1136f3b700b2')
|
|
|
|
prepare() {
|
|
cp -a $_libname-$pkgver{,-py2}
|
|
|
|
cd $_libname-$pkgver-py2
|
|
sed -i '1s|python$|python2|' certifi/core.py
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir/$_libname-$pkgver"
|
|
python setup.py build
|
|
|
|
cd "$srcdir/$_libname-$pkgver-py2"
|
|
python2 setup.py build
|
|
}
|
|
|
|
package_python-certifi() {
|
|
depends=('python')
|
|
|
|
cd "$srcdir/$_libname-$pkgver"
|
|
python setup.py install --skip-build -O1 --root="$pkgdir"
|
|
install -m0644 -D "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|
|
|
|
package_python2-certifi() {
|
|
depends=('python2')
|
|
|
|
cd "$srcdir/$_libname-$pkgver-py2"
|
|
python2 setup.py install --skip-build -O1 --root="$pkgdir"
|
|
install -m0644 -D "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|