# Contributor: Corentin Henry # Maintainer: Corentin Henry pkgname=py-google-apputils _pkgname=${pkgname#py-} pkgver=0.4.2 pkgrel=1 pkgdesc="Google Application Utilities for Python" url="https://github.com/google/google-apputils" arch="noarch" license="Apache-2.0" depends="python2 py-dateutil>=1.4 py-gflags>=1.4 py-tz>=2010" makedepends="py-setuptools" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver build() { python2 setup.py build } package() { python2 setup.py install --prefix=/usr --root="$pkgdir" # Workaround for https://github.com/google/google-apputils/issues/4. # The files under google_apputils.egg-info lack read permission for # "other", which causes `python setup.py build` failures for packages # using google-apputils. chmod o+r "$pkgdir"/usr/lib/python2.7/site-packages/google_apputils-$pkgver-py2.7.egg-info/* } sha512sums="d7579ec461292bb01ad5b8e1b09e161c66af0e85361f43f6065b837c90bddb9711a2d56db2b73d780dc25945375d4dad2f646507512b9acfeefd517613feacd4 google-apputils-0.4.2.tar.gz"