aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-google-api-python-client/APKBUILD
blob: f3584dc44a65fcd5aa74f4ed93ebc7af776c751f (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-google-api-python-client
_pkgname=google-api-python-client
pkgver=1.4.1
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="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
}

md5sums="3e2cf16cf5502f6315aaf2fc8f1d7437  google-api-python-client-1.4.1.tar.gz"
sha256sums="63d3bad8b29337cfd1c8b96e403dc0fe61e437a118eeff0c1eaa109c96e13f9c  google-api-python-client-1.4.1.tar.gz"
sha512sums="4a08700ae91c7591da1ec4f4e3cb8ac818ca82fa547c76e2a9c8a3ae9cb5d80ba74d952684de3f6e9ee8d79fa5dab2be2fe22a27c38ab65a98a7772a467cbe30  google-api-python-client-1.4.1.tar.gz"