aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-oauth2client/APKBUILD
blob: 31098abf44a37d9078ecfa798faf9a7d03ee7a12 (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-oauth2client
_pkgname=oauth2client
pkgver=1.4.12
pkgrel=0
pkgdesc="A client library for OAuth 2.0"
url="https://github.com/google/oauth2client"
arch="noarch"
license="Apache"
depends="python py-asn1 py-httplib2 py-asn1-modules py-rsa py-six"
depends_dev=""
makedepends="python2-dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.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
}

md5sums="829a05a559b43215d67947aaff9c11b5  oauth2client-1.4.12.tar.gz"
sha256sums="74aa6c3beb90a4a7b9b8d0bc3cd60db34d45c5ee6136187bb9eabe85b4990e5e  oauth2client-1.4.12.tar.gz"
sha512sums="90be14e7572f4f25b9284969f2b3969a8be8115b0b648c45e022353ca101c716a8f1478045f807909774cc9abbb82c60547d01458707904b8d7aa7cc64467a2c  oauth2client-1.4.12.tar.gz"