blob: cbc057a3ec78c0e80156f391e22b55ad08a0ae31 (
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
46
47
48
49
50
51
52
|
# Contributor: Matt Smith <mcs@darkregion.net>
# Maintainer: Matt Smith <mcs@darkregion.net>
pkgname=py-boto
_pkgname=boto
pkgver=2.13.3
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="f4e43a842db5c5010d2bddc3569028dc boto-2.13.3.tar.gz"
sha256sums="8734d9008a7437fad538d8fd7a946bf5820cbde2a0e89a32b0fc12d3371b242b boto-2.13.3.tar.gz"
sha512sums="352cac174a3f6a185b65ecac5f6f9ce723c65343bf64383b4c7b60454093a4f779228d5ac8f4433ccb81cd5bde1f31113491007ced0d3fe98e8b79acaaf7e914 boto-2.13.3.tar.gz"
|