aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-google-api-python-client/APKBUILD
blob: 0bb453632251871270e124ffaceae66deda20d14 (plain) (blame)
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-google-api-python-client
_pkgname=google-api-python-client
pkgver=1.4.2
pkgrel=0
pkgdesc="Google API Client Library for Python"
url="https://code.google.com/p/google-api-python-client/"
arch="noarch"
license="Apache"
depends="python py-httplib2 py-oauth2client py-uritemplate 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="7033985a645e39d3ccf1b2971ab7b6b8  google-api-python-client-1.4.2.tar.gz"
sha256sums="2cd7ccc797b0f5d1ef75ea1ebf749da47c4972daf534d22fd3c6b4dfbd9a88ee  google-api-python-client-1.4.2.tar.gz"
sha512sums="e0fb0f6702651df73049742f30669419413f1b9c1b569c54943d49b08759aa02b78c06a5dad71cbcc18a4c66d17c4775c487badd10e6cd85acfa47d45403fd7b  google-api-python-client-1.4.2.tar.gz"