aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-certifi/APKBUILD
blob: 6dbe91edb3f103e0875ede72a5307e110802387e (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
# Maintainer: Peter Bui <pnutzh4x0r@gmail.com>
pkgname=py-certifi
_pkgname=certifi
pkgver=2015.11.20
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="25134646672c695c1ff1593c2dd75d08  certifi-2015.11.20.tar.gz"
sha256sums="7168668372f07219439e82878b484d6216ff63224fd4e7ff4f39c56ad0b487de  certifi-2015.11.20.tar.gz"
sha512sums="d93dd596f572c4fe72c0fca205552da4d533ae094b372294741aa007c1fdcc4f452c1ea474f9a92a7e87f7f2ed82375bca3e33f0cabf22a8bc7a42a733dd8d58  certifi-2015.11.20.tar.gz"