# Contributor: Matt Smith # Maintainer: Matt Smith pkgname=py-boto _pkgname=boto pkgver=2.38.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="python" makedepends="python-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 prepare() { cd "$_builddir" # apply patches here } build() { cd "$_builddir" python setup.py build || return 1 } package() { cd "$_builddir" python setup.py install --root "$pkgdir" || return 1 } 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 '{}' \; } md5sums="28112f29e9c7b10e12b6917a325e70ce boto-2.38.0.tar.gz" sha256sums="d9083f91e21df850c813b38358dc83df16d7f253180a1344ecfedce24213ecf2 boto-2.38.0.tar.gz" sha512sums="577672007348db846d041c0906806c62eb77653b1335645cc852c603f5d32991ca648aacb884676af02043914c91ab6f41666b36b5b1ae23a3a354bdf9f3f75a boto-2.38.0.tar.gz"