# Contributor: Matt Smith # Maintainer: Matt Smith pkgname=py-boto _pkgname=boto pkgver=2.9.6 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="http://pypi.python.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="46f8e51001d2e8e17ec50615d0d55201 boto-2.9.6.tar.gz" sha256sums="baf12b9101b17a5bb97e7ee74fef8622f4ca0f3c147f870eff58c37a7a2297c5 boto-2.9.6.tar.gz" sha512sums="25bfabd43ebc317824ab2175431368844dd4a130970d8e54cb1be336a4e6f0b24273d14e10b29b63aa0004c15af5a0c9975af3a31aa81ea38d58509f4dbe8a85 boto-2.9.6.tar.gz"