aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-google-apputils/APKBUILD
blob: 600e0a1f6c72a3af913b88e4d535af02fef5b5e8 (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
# Contributor: Corentin Henry <corentinhenry@gmail.com>
# Maintainer: Corentin Henry <corentinhenry@gmail.com>
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="ASL-2.0"
depends="python2 py-dateutil>=1.4 py-gflags>=1.4 py-tz>=2010"
makedepends="python2-dev py-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"

builddir="$srcdir"/$_pkgname-$pkgver

build() {
	cd "$builddir"
	python2 setup.py build || return 1
}

package() {
	cd "$builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1

	# 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/*
}

md5sums="fb9fadf621dbecf28c8dabb5fe37ddb3  google-apputils-0.4.2.tar.gz"
sha256sums="47959d0651c32102c10ad919b8a0ffe0ae85f44b8457ddcf2bdc0358fb03dc29  google-apputils-0.4.2.tar.gz"
sha512sums="d7579ec461292bb01ad5b8e1b09e161c66af0e85361f43f6065b837c90bddb9711a2d56db2b73d780dc25945375d4dad2f646507512b9acfeefd517613feacd4  google-apputils-0.4.2.tar.gz"