blob: 354dae21136b1b5accad38911cac0b7107b595a6 (
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
42
|
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-httplib2
_pkgname=httplib2
pkgver=0.9.1
pkgrel=1
pkgdesc="A Python HTTP client library"
url="https://github.com/jcgregorio/httplib2"
arch="noarch"
license="MIT"
depends="python"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="http://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" || return 1
chmod o+r $pkgdir/usr/lib/python2.7/site-packages/httplib2/cacerts.txt
}
md5sums="c49590437e4c5729505d034cd34a8528 httplib2-0.9.1.tar.gz"
sha256sums="bc6339919a5235b9d1aaee011ca5464184098f0c47c9098001f91c97176583f5 httplib2-0.9.1.tar.gz"
sha512sums="2005d55c94971163b42366a33578f068b3e1316d59b4d834dc2d2ebcfa050d1492a27d0eefaceea48ed0cc41d8d6d3eb1b401658546a317ff82f0901a441f716 httplib2-0.9.1.tar.gz"
|