aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-certifi/APKBUILD
blob: ab09e343dc0446f8e34f46dfbee77b7d6e0c4d11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer:
pkgname=py-certifi
_pkgname=certifi
pkgver=14.05.14
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="315ea4e50673a16ab047099f816fd32a  certifi-14.05.14.tar.gz"
sha256sums="1e1bcbacd6357c151ae37cf0290dcc809721d32ce21fd6b7339568f3ddef1b69  certifi-14.05.14.tar.gz"
sha512sums="5edba0cc432c27212e31085fb3c2f2ded6fa177d716116111517c25b980d9fc206a9a6d47e2c001762e951ff50203b269d0eb245a039df20188b1136f3b700b2  certifi-14.05.14.tar.gz"