aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-boto/APKBUILD
blob: d94bf8be4af1fb4c980d732b6d3de7fee6138ead (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
41
42
43
44
45
# Contributor: Matt Smith <mcs@darkregion.net>
# Maintainer: Matt Smith <mcs@darkregion.net>
pkgname=py-boto
_pkgname=boto
pkgver=2.49.0
pkgrel=0
pkgdesc="An interface to infrastructural services offered by Amazon Web Services"
url="http://docs.pythonboto.org/en/latest/index.html"
arch="noarch"
license="MIT"
depends="python2"
makedepends="python2-dev py-setuptools"
install=""
subpackages="$pkgname-doc"
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
}

package() {
	cd "$builddir"
	python2 setup.py install --root "$pkgdir"
}

doc() {
	cd "$builddir"

	mkdir -p "$subpkgdir"/usr/share/doc/$pkgname
	install -Dm644 README.rst "$subpkgdir"/usr/share/doc/$pkgname/README

	# Note: The documentation in the 'docs' directory can only be generated
	# (via sphinx-build from the py-sphinx package) once this package has
	# been installed.  Copying it off for the user.
	mkdir -p "$subpkgdir"/usr/share/doc/$pkgname/docs
	cp -R ./docs/* "$subpkgdir"/usr/share/doc/$pkgname/docs/
	chmod -R 644 "$subpkgdir"/usr/share/doc/$pkgname/docs/

	# Fix subdir perms
	find "$subpkgdir"/usr/share/doc/$pkgname/ -type d -exec chmod 755 '{}' \;
}

sha512sums="2175cf30cd25bbc05812e83e5ade7668c3e21b1bb09aa1b43f0f0ac7d6967a646394fb52c9be673ebb65618c5b33a52d6f31f6da702f5cd1d6c9a18169476dd4  boto-2.49.0.tar.gz"