blob: 2f5c78607c310589654f2cd34a1f8d6f1ca5ffb0 (
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
|
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-httplib2
_pkgname=httplib2
pkgver=0.10.2
pkgrel=0
pkgdesc="A Python HTTP client library"
url="https://github.com/jcgregorio/httplib2"
arch="noarch"
license="MIT"
depends="python2"
makedepends="python2-dev py-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
prepare() {
default_prepare || return 1
cd "$builddir"
chmod 644 python2/${_pkgname}.egg-info/*
}
build() {
cd "$builddir"
python2 setup.py build || return 1
}
package() {
cd "$builddir"
python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
chmod o+r $pkgdir/usr/lib/python2.7/site-packages/httplib2/cacerts.txt
}
md5sums="2501a693df730e8b1f5803b0c02a39c2 httplib2-0.10.2.tar.gz"
sha256sums="ee10fe4505d1bb5b3d519e9b004cab7a12d10ce160aceab626a00cf5937d8927 httplib2-0.10.2.tar.gz"
sha512sums="8209c598a70f216ba9c246a272a691f22ecd5658f0e9aeaba944a914478b3fe132efac0393fdb3d5eea679cc8e7479a7f670eaa01208419250ce68319b8b0186 httplib2-0.10.2.tar.gz"
|